:root {
  --blood: #b21d12;
  --ember: #ff5b1f;
  --gold: #f5cf72;
  --gold-hot: #fff2a9;
  --ink: #080403;
  --paper: #f8ebcf;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

button {
  font: inherit;
}

.battlefield {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #080302;
}

.battlefield__art,
.battlefield__shade,
.battlefield__texture,
.scene-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.battlefield__art {
  z-index: -5;
  background-image: url("legend-bg.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.battlefield__shade {
  z-index: -4;
  background:
    linear-gradient(180deg, rgba(3, 1, 1, 0.2) 0%, rgba(6, 2, 1, 0.04) 28%, rgba(5, 2, 1, 0.1) 66%, rgba(5, 1, 0, 0.72) 100%),
    radial-gradient(circle at 50% 41%, transparent 0, transparent 25%, rgba(2, 0, 0, 0.18) 55%, rgba(1, 0, 0, 0.76) 100%),
    linear-gradient(90deg, rgba(4, 0, 0, 0.18), transparent 29%, transparent 71%, rgba(4, 0, 0, 0.18));
}

.battlefield__texture {
  z-index: 8;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(3deg, transparent 0, rgba(255, 229, 184, 0.18) 1px, transparent 2px, transparent 5px),
    repeating-linear-gradient(93deg, transparent 0, rgba(0, 0, 0, 0.24) 1px, transparent 2px, transparent 7px);
  background-size: 13px 17px, 19px 11px;
  mix-blend-mode: soft-light;
}

.scene-effects {
  z-index: 3;
}

.scene-effects__embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.scene-effects__fog {
  position: absolute;
  left: -25%;
  width: 150%;
  height: 28%;
  opacity: 0.16;
  filter: blur(30px);
  background:
    radial-gradient(ellipse at 20% 60%, rgba(201, 74, 38, 0.4), transparent 27%),
    radial-gradient(ellipse at 50% 40%, rgba(197, 179, 152, 0.2), transparent 30%),
    radial-gradient(ellipse at 80% 70%, rgba(210, 73, 34, 0.35), transparent 25%);
  animation: fog-drift 18s ease-in-out infinite alternate;
}

.scene-effects__fog--one {
  bottom: 3%;
}

.scene-effects__fog--two {
  bottom: 19%;
  opacity: 0.08;
  transform: scaleX(-1);
  animation-duration: 26s;
  animation-delay: -8s;
}

.scene-effects__fire {
  position: absolute;
  bottom: -8%;
  width: 34vw;
  height: 34vh;
  opacity: 0.24;
  filter: blur(18px);
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse at 45% 100%, rgba(255, 54, 6, 0.9), transparent 54%),
    radial-gradient(ellipse at 70% 100%, rgba(255, 173, 31, 0.55), transparent 38%);
  animation: fire-breathe 2.9s ease-in-out infinite alternate;
}

.scene-effects__fire--left {
  left: -5%;
}

.scene-effects__fire--right {
  right: -5%;
  transform: scaleX(-1);
  animation-delay: -1.2s;
}

.scene-effects__slash {
  position: absolute;
  top: 28%;
  left: 50%;
  width: 44vw;
  height: 2px;
  opacity: 0;
  transform: translateX(-50%) rotate(-11deg) scaleX(0.1);
  transform-origin: center;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 169, 0.2), #fff3c4, rgba(255, 87, 30, 0.25), transparent);
  box-shadow: 0 0 12px rgba(255, 224, 135, 0.7), 0 0 36px rgba(255, 62, 19, 0.38);
  animation: blade-flash 7.5s ease-out infinite;
}

.scene-effects.is-paused .scene-effects__fog,
.scene-effects.is-paused .scene-effects__fire,
.scene-effects.is-paused .scene-effects__slash {
  animation-play-state: paused;
  opacity: 0;
}

.hero {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100svh;
  padding: clamp(3.8rem, 6.5vh, 5.8rem) clamp(1rem, 2.4vw, 2.6rem) clamp(3.8rem, 5.5vh, 5rem);
  text-align: center;
}

.hero__content {
  width: min(1280px, 80vw);
  margin-top: -0.8vh;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0 0 clamp(0.24rem, 0.7vh, 0.58rem);
  color: rgba(248, 225, 181, 0.68);
  font-family: "SimSun", serif;
  font-size: clamp(0.72rem, 0.86vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.hero__eyebrow span {
  width: clamp(1.8rem, 4vw, 4rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 164, 76, 0.7));
}

.hero__eyebrow span:last-child {
  transform: scaleX(-1);
}

.logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  white-space: nowrap;
  font-family: "STKaiti", "KaiTi", "FangSong", serif;
  font-weight: 900;
  line-height: 0.94;
  filter: drop-shadow(0 4px 0 #260804) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.8));
}

.logo::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 96%;
  height: 68%;
  background: radial-gradient(ellipse, rgba(186, 38, 12, 0.78), rgba(78, 7, 3, 0.3) 46%, transparent 72%);
  filter: blur(12px);
}

.logo__main {
  position: relative;
  z-index: 0;
  display: inline-block;
  color: transparent;
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
  font-size: clamp(5.5rem, 9.8vw, 11.8rem);
  font-weight: 900;
  letter-spacing: 0.015em;
  -webkit-text-stroke: 1.5px #fff0a0;
  background:
    linear-gradient(180deg, #fffbd0 0%, #ffd65b 17%, #c16d13 44%, #fff0a0 58%, #d58620 72%, #74300b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 0 16px rgba(255, 112, 20, 0.34);
  filter: drop-shadow(0 4px 0 #6c1d08) drop-shadow(0 9px 2px #220301) drop-shadow(0 15px 22px rgba(0, 0, 0, 0.92));
  transform: skewX(-3deg) scaleX(1.03);
  transform-origin: center;
  isolation: isolate;
}

.logo__main::before,
.logo__main::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.logo__main::before {
  z-index: -2;
  color: #621307;
  -webkit-text-stroke: 9px #160100;
  text-shadow: -6px 5px 0 #8e1d09, 6px 5px 0 #8e1d09, 0 11px 0 #260301;
}

.logo__main::after {
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 3.5px #d58b24;
  filter: drop-shadow(0 0 8px rgba(255, 93, 18, 0.7));
}

.logo__dot {
  margin: 0 0.06em 0 0.13em;
  color: #d9842e;
  font-size: clamp(3.4rem, 6vw, 7rem);
}

.logo__edition {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 1.9em;
  padding: 0.22em 0.26em 0.18em;
  border: 1px solid #e8b35b;
  color: #ffe5a2;
  font-size: clamp(1.7rem, 2.85vw, 3.4rem);
  letter-spacing: 0.06em;
  line-height: 1;
  background: linear-gradient(145deg, rgba(95, 15, 7, 0.96), rgba(191, 46, 14, 0.88) 52%, rgba(74, 7, 4, 0.96));
  box-shadow: inset 0 0 0 3px rgba(60, 6, 3, 0.7), 0 0 18px rgba(221, 66, 18, 0.35);
  transform: rotate(-2deg);
}

.slogan {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  margin: clamp(0.52rem, 1.35vh, 0.95rem) auto clamp(0.9rem, 2vh, 1.45rem);
  padding: 0.78rem clamp(1.25rem, 2.4vw, 2.25rem);
  color: #f7e5bf;
  font-family: "STSong", "SimSun", serif;
  font-size: clamp(0.92rem, 1.28vw, 1.42rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, transparent, rgba(27, 5, 2, 0.88) 12%, rgba(27, 5, 2, 0.88) 88%, transparent);
  text-shadow: 0 2px 5px #000;
}

.slogan::before,
.slogan::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 68%;
  border-block: 1px solid rgba(232, 174, 80, 0.85);
  transform: translateY(-50%);
}

.slogan::before {
  left: 0;
  border-left: 1px solid rgba(232, 174, 80, 0.85);
}

.slogan::after {
  right: 0;
  border-right: 1px solid rgba(232, 174, 80, 0.85);
}

.slogan span {
  display: inline-flex;
  align-items: center;
}

.slogan span:not(:last-child)::after {
  content: "◆";
  margin: 0 0.56em;
  color: rgba(213, 123, 39, 0.72);
  font-size: 0.44em;
}

.slogan__hot {
  color: #ffdb71;
  text-shadow: 0 0 10px rgba(255, 71, 16, 0.74), 0 2px 5px #000;
}

.copy-stack {
  display: grid;
  gap: clamp(0.58rem, 1.25vh, 0.95rem);
  width: min(1140px, 100%);
  margin: 0 auto;
}

.copy-row {
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0.82rem clamp(1rem, 1.7vw, 1.6rem) 0.82rem 0.82rem;
  border: 1px solid rgba(202, 133, 48, 0.25);
  border-inline-color: rgba(202, 133, 48, 0.42);
  color: rgba(250, 235, 207, 0.88);
  background: linear-gradient(90deg, rgba(17, 4, 2, 0.78), rgba(26, 7, 3, 0.58) 50%, rgba(17, 4, 2, 0.78));
  box-shadow: inset 0 0 22px rgba(139, 22, 8, 0.13), 0 5px 18px rgba(0, 0, 0, 0.28);
  font-family: "STSong", "SimSun", serif;
  font-size: clamp(0.86rem, 1.08vw, 1.18rem);
  font-weight: 700;
  letter-spacing: 0.055em;
  text-shadow: 0 2px 4px #000;
}

.copy-row__mark {
  display: grid;
  place-items: center;
  width: 1.82rem;
  height: 1.82rem;
  border: 1px solid rgba(235, 179, 82, 0.72);
  color: #e9b45b;
  font-size: 0.76rem;
  background: rgba(91, 19, 8, 0.76);
  transform: rotate(45deg);
}

.copy-row__mark i,
.battle-cta__seal i {
  font-style: normal;
  transform: rotate(-45deg);
}

.copy-row__items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 0.25rem;
}

.copy-row__items > span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.copy-row__items > span:not(:last-child)::after {
  content: "·";
  margin: 0 0.44em;
  color: rgba(188, 80, 34, 0.88);
}

.copy-row__gold {
  color: var(--gold-hot);
}

.battle-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(0.9rem, 1.9vh, 1.4rem);
  color: rgba(243, 203, 118, 0.86);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(0.9rem, 1.08vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-shadow: 0 2px 4px #000;
}

.battle-cta__seal {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid #f2bc5d;
  color: #ffe398;
  font-size: 1.2rem;
  letter-spacing: 0;
  background: linear-gradient(135deg, #7a1309, #c73e16);
  box-shadow: inset 0 0 0 3px rgba(67, 8, 3, 0.7), 0 0 18px rgba(198, 47, 15, 0.32);
  transform: rotate(45deg);
}

.battle-cta__wing {
  width: clamp(2rem, 4vw, 4.6rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 153, 61, 0.72));
}

.battle-cta__wing--right {
  transform: scaleX(-1);
}

.fixed-camera-note {
  position: absolute;
  z-index: 7;
  right: clamp(0.9rem, 2vw, 2rem);
  bottom: clamp(0.8rem, 2vh, 1.4rem);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: rgba(237, 219, 189, 0.38);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

.fixed-camera-note span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #bc3a19;
  box-shadow: 0 0 8px rgba(233, 68, 27, 0.8);
}

.motion-toggle {
  position: absolute;
  top: clamp(0.8rem, 2vh, 1.4rem);
  right: clamp(0.9rem, 2vw, 2rem);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.7rem;
  border: 1px solid rgba(222, 170, 87, 0.28);
  border-radius: 2px;
  color: rgba(245, 224, 188, 0.58);
  background: rgba(10, 3, 2, 0.58);
  font-size: 0.65rem;
  letter-spacing: 0.11em;
  pointer-events: auto;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.motion-toggle:hover,
.motion-toggle:focus-visible {
  border-color: rgba(242, 185, 91, 0.68);
  color: #f6dfb3;
  background: rgba(31, 7, 3, 0.78);
  outline: none;
}

.motion-toggle__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e74d1b;
  box-shadow: 0 0 8px #e74d1b;
}

.is-paused .motion-toggle__dot {
  background: #7f756d;
  box-shadow: none;
}

@keyframes fog-drift {
  from { transform: translate3d(-2.5%, 0, 0) scaleY(0.88); }
  to { transform: translate3d(2.5%, -7%, 0) scaleY(1.12); }
}

@keyframes fire-breathe {
  from { opacity: 0.16; transform: scale(0.96, 0.85); }
  to { opacity: 0.34; transform: scale(1.08, 1.08); }
}

@keyframes blade-flash {
  0%, 68%, 100% { opacity: 0; transform: translateX(-50%) rotate(-11deg) scaleX(0.08); }
  70% { opacity: 0.95; transform: translateX(-50%) rotate(-11deg) scaleX(0.85); }
  73% { opacity: 0; transform: translateX(-50%) rotate(-11deg) scaleX(1.08); }
}

@media (max-width: 980px) {
  .hero__content {
    width: min(880px, 92vw);
  }

  .battlefield__art {
    background-position: center center;
  }
}

@media (max-width: 700px) {
  .battlefield {
    overflow-y: auto;
  }

  .battlefield__art {
    position: fixed;
    background-position: center center;
  }

  .battlefield__shade,
  .battlefield__texture,
  .scene-effects {
    position: fixed;
  }

  .hero {
    min-height: 100svh;
    padding: 5.4rem 0.78rem 5rem;
  }

  .hero__content {
    width: 100%;
    margin-top: 0;
  }

  .hero__eyebrow {
    letter-spacing: 0.18em;
  }

  .logo__main {
    font-size: clamp(3.65rem, 17vw, 5.4rem);
  }

  .logo__dot {
    font-size: 2.5rem;
  }

  .logo__edition {
    font-size: clamp(1.1rem, 5vw, 1.55rem);
  }

  .slogan {
    margin-bottom: 1.15rem;
    padding-inline: 0.82rem;
    font-size: clamp(0.72rem, 3.1vw, 0.94rem);
    line-height: 1.8;
  }

  .copy-stack {
    gap: 0.48rem;
  }

  .copy-row {
    grid-template-columns: 1.75rem 1fr;
    gap: 0.35rem;
    padding: 0.55rem 0.45rem 0.55rem 0.52rem;
    font-size: clamp(0.66rem, 2.9vw, 0.84rem);
    line-height: 1.7;
  }

  .copy-row__items > span:not(:last-child)::after {
    margin-inline: 0.34em;
  }

  .battle-cta {
    margin-top: 1.3rem;
    letter-spacing: 0.12em;
  }

  .battle-cta__wing {
    display: none;
  }

  .fixed-camera-note {
    display: none;
  }
}

@media (max-height: 700px) and (min-width: 701px) {
  .hero {
    padding-block: 3.2rem 2.7rem;
  }

  .logo__main {
    font-size: clamp(3.6rem, 8vh, 6rem);
  }

  .logo__dot {
    font-size: clamp(2.3rem, 6vh, 4rem);
  }

  .logo__edition {
    font-size: clamp(1.2rem, 3.5vh, 2rem);
  }

  .slogan {
    margin-block: 0.55rem 0.85rem;
    padding-block: 0.45rem;
  }

  .copy-stack {
    gap: 0.4rem;
  }

  .copy-row {
    padding-block: 0.42rem;
  }

  .battle-cta {
    margin-top: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Poster hierarchy: one dominant offer banner, followed by three distinct benefit blocks. */
.hero--poster {
  padding: clamp(3.5rem, 6vh, 5rem) clamp(1rem, 2vw, 2rem) clamp(3.2rem, 5vh, 4.5rem);
}

.hero__content--poster {
  width: min(1340px, 86vw);
  margin-top: 0;
}

.logo--poster .logo__main {
  font-size: clamp(5.3rem, 8.8vw, 10.5rem);
}

.logo--poster .logo__dot {
  font-size: clamp(3.2rem, 5.2vw, 6.2rem);
}

.logo--poster .logo__edition {
  font-size: clamp(1.65rem, 2.65vw, 3.15rem);
}

.war-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  width: min(1160px, 94%);
  min-height: 5rem;
  margin: clamp(0.45rem, 1.2vh, 0.8rem) auto 0;
  border-block: 1px solid rgba(245, 191, 91, 0.76);
  color: #f8e7c5;
  background:
    linear-gradient(90deg, rgba(86, 12, 5, 0.88), rgba(24, 5, 2, 0.94) 30%, rgba(24, 5, 2, 0.94) 76%, rgba(86, 12, 5, 0.88));
  box-shadow: 0 0 34px rgba(135, 25, 8, 0.36), inset 0 0 32px rgba(187, 42, 12, 0.14);
  clip-path: polygon(1.3rem 0, calc(100% - 1.3rem) 0, 100% 50%, calc(100% - 1.3rem) 100%, 1.3rem 100%, 0 50%);
}

.war-banner::before,
.war-banner::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(1.8rem, 4vw, 4rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, #e8a74b);
}

.war-banner::before {
  right: 100%;
}

.war-banner::after {
  left: 100%;
  transform: scaleX(-1);
}

.war-banner__offer {
  position: relative;
  display: grid;
  align-content: center;
  min-width: clamp(10rem, 15vw, 13.5rem);
  padding: 0.58rem clamp(1rem, 1.6vw, 1.5rem) 0.52rem clamp(1.35rem, 2vw, 2rem);
  color: #ffeda4;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(1.75rem, 2.35vw, 2.65rem);
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: left;
  text-shadow: 0 2px 0 #611107, 0 0 16px rgba(255, 109, 24, 0.56);
  background: linear-gradient(110deg, rgba(177, 39, 12, 0.94), rgba(100, 12, 5, 0.78));
}

.war-banner__offer::after {
  content: "";
  position: absolute;
  top: 15%;
  right: 0;
  width: 1px;
  height: 70%;
  background: linear-gradient(transparent, #f4c15c, transparent);
}

.war-banner__offer small {
  display: block;
  margin-bottom: 0.36rem;
  color: rgba(255, 225, 165, 0.62);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.34em;
}

.war-banner__offer span {
  white-space: nowrap;
}

.war-banner__features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  padding: 0.7rem clamp(1rem, 2vw, 2rem) 0.7rem 1.25rem;
  font-family: "STSong", "SimSun", serif;
  font-size: clamp(0.92rem, 1.18vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 4px #000;
}

.war-banner__features span {
  position: relative;
  padding-inline: 0.42rem;
  white-space: nowrap;
}

.war-banner__features span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 0;
  width: 1px;
  height: 64%;
  background: linear-gradient(transparent, rgba(222, 143, 58, 0.65), transparent);
}

.war-banner__features .is-hot {
  color: #ffcf62;
  text-shadow: 0 0 12px rgba(255, 62, 17, 0.88), 0 2px 4px #000;
}

.battle-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.72rem, 1.1vw, 1.15rem);
  width: min(1220px, 100%);
  margin: clamp(0.9rem, 1.8vh, 1.3rem) auto 0;
}

.battle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: clamp(13.25rem, 22vh, 15rem);
  padding: 1rem clamp(0.9rem, 1.4vw, 1.35rem) 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(211, 142, 56, 0.52);
  color: #f5e6c9;
  background:
    linear-gradient(145deg, rgba(31, 7, 3, 0.96), rgba(14, 4, 2, 0.87)),
    radial-gradient(circle at 50% 0, rgba(169, 45, 13, 0.34), transparent 55%);
  box-shadow: inset 0 0 36px rgba(134, 28, 8, 0.13), 0 10px 26px rgba(0, 0, 0, 0.45);
  clip-path: polygon(0.75rem 0, calc(100% - 0.75rem) 0, 100% 0.75rem, 100% calc(100% - 0.75rem), calc(100% - 0.75rem) 100%, 0.75rem 100%, 0 calc(100% - 0.75rem), 0 0.75rem);
}

.battle-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f2bc59, transparent);
  box-shadow: 0 0 12px rgba(240, 129, 38, 0.76);
}

.battle-card::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -3rem;
  width: 8rem;
  height: 8rem;
  border: 1px solid rgba(189, 94, 28, 0.1);
  transform: rotate(45deg);
}

.battle-card--2 {
  border-color: rgba(246, 188, 86, 0.82);
  background:
    linear-gradient(145deg, rgba(78, 12, 5, 0.97), rgba(21, 5, 2, 0.93)),
    radial-gradient(circle at 50% 0, rgba(227, 67, 18, 0.3), transparent 58%);
  transform: translateY(-0.45rem);
  box-shadow: inset 0 0 46px rgba(190, 37, 10, 0.2), 0 14px 34px rgba(0, 0, 0, 0.56), 0 0 24px rgba(137, 26, 7, 0.22);
}

.battle-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(238, 195, 122, 0.58);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.battle-card__number {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid rgba(230, 164, 67, 0.5);
  color: #eab253;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 0.8rem;
  letter-spacing: 0;
  background: rgba(98, 18, 6, 0.64);
  transform: rotate(45deg);
}

.battle-card__number i {
  font-style: normal;
  transform: rotate(-45deg);
}

.battle-card h2 {
  margin: clamp(0.65rem, 1.1vh, 0.9rem) 0 0.7rem;
  color: transparent;
  font-family: "STKaiti", "KaiTi", "FangSong", serif;
  font-size: clamp(1.85rem, 2.45vw, 2.9rem);
  line-height: 1;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff2ae, #d99a36 55%, #fff0a0);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 2px 0 #511006) drop-shadow(0 0 9px rgba(242, 124, 31, 0.18));
}

.battle-card--2 h2 {
  font-size: clamp(1.7rem, 2.25vw, 2.65rem);
}

.battle-card__points {
  display: flex;
  align-content: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.battle-card__points span {
  padding: 0.32rem 0.53rem;
  border: 1px solid rgba(185, 105, 40, 0.26);
  color: rgba(249, 232, 198, 0.82);
  background: rgba(4, 1, 1, 0.38);
  font-family: "STSong", "SimSun", serif;
  font-size: clamp(0.75rem, 0.86vw, 0.93rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 0 2px 4px #000;
}

.battle-card__punches {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.78rem;
  border-top: 1px solid rgba(210, 133, 47, 0.22);
}

.battle-card__punches strong {
  color: #ffda75;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(1.05rem, 1.35vw, 1.45rem);
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(255, 63, 16, 0.65), 0 2px 5px #000;
}

.battle-card__punches strong:not(:last-child)::after {
  content: "×";
  margin-left: 0.5rem;
  color: rgba(209, 116, 37, 0.7);
  font-size: 0.74em;
}

@media (max-width: 980px) {
  .hero__content--poster {
    width: min(920px, 94vw);
  }

  .war-banner {
    width: 100%;
  }

  .war-banner__features {
    padding-inline: 0.75rem;
    font-size: clamp(0.75rem, 1.7vw, 1rem);
  }

  .battle-card h2 {
    font-size: clamp(1.55rem, 2.9vw, 2.25rem);
  }
}

@media (max-width: 840px) {
  .battlefield {
    overflow-y: auto;
  }

  .hero--poster {
    min-height: 100svh;
    padding: 5.1rem 0.78rem 4.5rem;
  }

  .hero__content--poster {
    width: 100%;
  }

  .logo--poster .logo__main {
    font-size: clamp(4.1rem, 15vw, 6.4rem);
  }

  .logo--poster .logo__dot {
    font-size: clamp(2.3rem, 8vw, 3.5rem);
  }

  .logo--poster .logo__edition {
    font-size: clamp(1.15rem, 4.6vw, 1.9rem);
  }

  .war-banner {
    grid-template-columns: 1fr;
    clip-path: polygon(0.7rem 0, calc(100% - 0.7rem) 0, 100% 0.7rem, 100% calc(100% - 0.7rem), calc(100% - 0.7rem) 100%, 0.7rem 100%, 0 calc(100% - 0.7rem), 0 0.7rem);
  }

  .war-banner__offer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-width: 0;
    padding: 0.62rem;
    text-align: center;
  }

  .war-banner__offer::after {
    top: auto;
    right: 10%;
    bottom: 0;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f4c15c, transparent);
  }

  .war-banner__offer small {
    margin: 0;
  }

  .war-banner__features {
    min-height: 3.2rem;
  }

  .battle-cards {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    width: min(600px, 100%);
  }

  .battle-card,
  .battle-card--2 {
    min-height: 0;
    padding-block: 0.9rem;
    transform: none;
  }

  .battle-card h2,
  .battle-card--2 h2 {
    margin-block: 0.55rem;
    font-size: clamp(1.8rem, 7vw, 2.45rem);
  }

  .battle-card__punches {
    margin-top: 0.72rem;
  }
}

@media (max-width: 520px) {
  .hero--poster {
    padding-inline: 0.55rem;
  }

  .hero__eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }

  .logo__main::before {
    -webkit-text-stroke-width: 6px;
    text-shadow: -3px 3px 0 #8e1d09, 3px 3px 0 #8e1d09, 0 7px 0 #260301;
  }

  .logo__main::after {
    -webkit-text-stroke-width: 2.5px;
  }

  .war-banner__offer {
    font-size: 1.65rem;
  }

  .war-banner__features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 0.65rem;
    padding-block: 0.72rem;
    font-size: 0.76rem;
  }

  .war-banner__features span:nth-child(3)::after {
    display: none;
  }

  .battle-card__points span {
    font-size: 0.74rem;
  }
}

.portal-actions {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 1.4vw, 1.35rem);
  margin-top: clamp(0.75rem, 1.5vh, 1.1rem);
}

.portal-action {
  position: relative;
  display: grid;
  grid-template-columns: 2.8rem auto;
  align-items: center;
  gap: 0.75rem;
  min-width: clamp(12.5rem, 15vw, 15.5rem);
  min-height: 3.55rem;
  padding: 0.5rem 1.25rem 0.5rem 0.8rem;
  overflow: hidden;
  border: 1px solid #f1be5b;
  font-family: "Microsoft YaHei", sans-serif;
  text-align: left;
  cursor: pointer;
  clip-path: polygon(0.65rem 0, calc(100% - 0.65rem) 0, 100% 0.65rem, 100% calc(100% - 0.65rem), calc(100% - 0.65rem) 100%, 0.65rem 100%, 0 calc(100% - 0.65rem), 0 0.65rem);
  box-shadow: 0 7px 0 rgba(30, 3, 1, 0.9), 0 12px 24px rgba(0, 0, 0, 0.42);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.portal-action::before {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 220, 0.48), transparent);
  transform: skewX(-18deg);
  transition: left 360ms ease;
}

.portal-action:hover,
.portal-action:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.12);
  box-shadow: 0 9px 0 rgba(30, 3, 1, 0.9), 0 16px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(238, 113, 24, 0.24);
  outline: 2px solid rgba(255, 236, 161, 0.82);
  outline-offset: 3px;
}

.portal-action:hover::before,
.portal-action:focus-visible::before {
  left: 120%;
}

.portal-action:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 rgba(30, 3, 1, 0.9), 0 7px 14px rgba(0, 0, 0, 0.42);
}

.portal-action--download {
  color: #3b1005;
  background: linear-gradient(180deg, #fff2a2 0%, #edb643 42%, #9a510d 100%);
  text-shadow: 0 1px 0 rgba(255, 244, 189, 0.7);
}

.portal-action--recharge {
  color: #ffe59d;
  background: linear-gradient(180deg, #c94218 0%, #841508 47%, #3c0703 100%);
  text-shadow: 0 2px 3px #2b0201;
}

.portal-action__icon {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid currentColor;
  font-family: "SimHei", sans-serif;
  font-size: 1.38rem;
  font-weight: 900;
  line-height: 1;
  background: rgba(35, 5, 2, 0.13);
  box-shadow: inset 0 0 0 3px rgba(255, 231, 148, 0.12);
  transform: rotate(45deg);
}

.portal-action__icon i,
.portal-modal__seal i {
  font-style: normal;
  transform: rotate(-45deg);
}

.portal-action__copy {
  display: grid;
  gap: 0.15rem;
}

.portal-action__copy small {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  opacity: 0.7;
}

.portal-action__copy strong {
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.28rem);
  letter-spacing: 0.13em;
}

.portal-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(3, 0, 0, 0.78);
  backdrop-filter: blur(7px);
  animation: portal-fade-in 160ms ease-out both;
}

.portal-modal[hidden] {
  display: none;
}

.portal-modal__panel {
  position: relative;
  width: min(28rem, 92vw);
  padding: 2.4rem 2rem 1.8rem;
  border: 1px solid rgba(238, 180, 82, 0.76);
  color: #f5e4c3;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(78, 12, 5, 0.98), rgba(17, 4, 2, 0.98)),
    radial-gradient(circle at 50% 0, rgba(222, 72, 19, 0.32), transparent 62%);
  box-shadow: inset 0 0 42px rgba(179, 43, 11, 0.18), 0 24px 70px rgba(0, 0, 0, 0.78);
  clip-path: polygon(1rem 0, calc(100% - 1rem) 0, 100% 1rem, 100% calc(100% - 1rem), calc(100% - 1rem) 100%, 1rem 100%, 0 calc(100% - 1rem), 0 1rem);
  animation: portal-rise-in 220ms ease-out both;
}

.portal-modal__seal {
  position: absolute;
  top: -1.25rem;
  left: 50%;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #f3c15c;
  color: #ffe8a1;
  background: #9f210d;
  box-shadow: inset 0 0 0 3px #4a0904, 0 0 20px rgba(237, 74, 18, 0.52);
  font-family: "SimHei", sans-serif;
  font-weight: 900;
  transform: translateX(-50%) rotate(45deg);
}

.portal-modal__eyebrow {
  margin: 0 0 0.45rem;
  color: rgba(238, 191, 111, 0.64);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.34em;
}

.portal-modal h2 {
  margin: 0;
  color: #ffe08a;
  font-family: "SimHei", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.12em;
  text-shadow: 0 0 16px rgba(245, 79, 20, 0.45);
}

.portal-modal__panel > p:not(.portal-modal__eyebrow) {
  margin: 1rem 0 1.35rem;
  color: rgba(245, 228, 196, 0.74);
  font-size: 0.88rem;
  line-height: 1.7;
}

.portal-modal__panel > button {
  min-width: 8rem;
  padding: 0.62rem 1rem;
  border: 1px solid #e6ad4c;
  color: #ffe19a;
  background: linear-gradient(180deg, #9d240f, #4f0904);
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.portal-modal__panel > button:hover,
.portal-modal__panel > button:focus-visible {
  background: linear-gradient(180deg, #c43c16, #6e0e06);
  outline: 2px solid rgba(255, 228, 143, 0.7);
  outline-offset: 3px;
}

@keyframes portal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes portal-rise-in {
  from { opacity: 0; transform: translateY(0.8rem) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
  .portal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .portal-action {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.48rem;
    min-width: 0;
    min-height: 3.25rem;
    padding: 0.42rem 0.52rem;
  }

  .portal-action__icon {
    width: 2rem;
    height: 2rem;
    font-size: 1.05rem;
  }

  .portal-action__copy small {
    font-size: 0.49rem;
    letter-spacing: 0.16em;
  }

  .portal-action__copy strong {
    font-size: 0.86rem;
    letter-spacing: 0.06em;
  }
}
