/* 全局设计令牌：集中维护网站的主色、辅助色与阴影。 */
@font-face {
  font-family: "Arpona";
  src: url("fonts/Arpona-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Arpona";
  src: url("fonts/Arpona-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Arpona";
  src: url("fonts/Arpona-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Arpona";
  src: url("fonts/Arpona-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Arpona";
  src: url("fonts/Arpona-Bold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Arpona";
  src: url("fonts/Arpona-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Arpona";
  src: url("fonts/Arpona-RegularItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #061024;
  --navy: #08152b;
  --midnight: #0b1c31;
  --cyan: #68e6ff;
  --emerald: #19d79a;
  --violet: #b46cff;
  --crimson: #d8404a;
  --gold: #f1bd54;
  --gold-light: #fff0a6;
  --paper: #f8f8f4;
  --stone: #9fb3ba;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.42);
}

/* 基础样式与全局盒模型。 */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--white);
  font-family: "Arpona", Arial, sans-serif;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

/* 页面底层氛围光背景。 */
.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 16%, rgba(25, 215, 154, 0.18), transparent 30rem),
    radial-gradient(circle at 80% 20%, rgba(180, 108, 255, 0.14), transparent 26rem),
    var(--ink);
}

/* 固定顶部导航。 */
.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 54px);
  background: rgba(5, 14, 31, 0.9);
  border-bottom: 2px solid rgba(241, 189, 84, 0.72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.announcement-bar {
  display: none;
  position: fixed;
  z-index: 19;
  top: 76px;
  left: 0;
  right: 0;
  min-height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 6px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: rgba(7, 20, 42, 0.94);
  border: 0;
  border-bottom: 1px solid rgba(241, 189, 84, 0.58);
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(10px);
}

.announcement-bar__badge {
  padding: 7px 20px;
  color: #34220d;
  background: linear-gradient(180deg, #fff2aa, var(--gold) 62%, #bd6e1d);
  clip-path: polygon(9% 0, 91% 0, 100% 50%, 91% 100%, 9% 100%, 0 50%);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.announcement-bar__title {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement-bar__more {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brand {
  display: block;
  text-decoration: none;
}

.brand img {
  display: block;
  width: clamp(112px, 9vw, 132px);
  height: auto;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.48));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 46px);
}

.main-nav a {
  position: relative;
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 132%;
}

/* 首屏英雄区及其背景分层。 */
.hero {
  position: relative;
  min-height: 75svh;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: 90px 24px 32px;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -4;
  background-image:
    linear-gradient(180deg, rgba(5, 14, 31, 0.2), rgba(5, 14, 31, 0.12) 46%, rgba(5, 14, 31, 0.7)),
    url("assets/hero/hero-bg-2026.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  transform: scale(1.015);
  animation: none;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at center 45%, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.68) 72%),
    linear-gradient(90deg, rgba(5, 14, 31, 0.62), transparent 34%, transparent 66%, rgba(5, 14, 31, 0.64));
}

.hero::after {
  z-index: -2;
  inset: 76px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 166, 0.6), transparent);
}

/* 首屏漂浮符文装饰。 */
.rune-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.rune-field span {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 240, 166, 0.7);
  transform: rotate(45deg);
  filter: drop-shadow(0 0 10px rgba(241, 189, 84, 0.8));
  animation: floatRune 7s linear infinite;
}

.rune-field span:nth-child(1) { left: 14%; top: 40%; animation-delay: -1s; }
.rune-field span:nth-child(2) { left: 30%; top: 70%; animation-delay: -4s; }
.rune-field span:nth-child(3) { left: 52%; top: 26%; animation-delay: -2s; }
.rune-field span:nth-child(4) { left: 70%; top: 62%; animation-delay: -5s; }
.rune-field span:nth-child(5) { left: 84%; top: 36%; animation-delay: -3s; }
.rune-field span:nth-child(6) { left: 43%; top: 82%; animation-delay: -6s; }

/* 首屏标题、说明文案与主按钮。 */
.hero-content {
  width: min(940px, 100%);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2.2vh, 20px);
  padding-top: 8px;
  transform: translateY(22px);
}

.hero-logo-title {
  width: min(580px, 72vw);
  max-width: none;
}

.hero-logo-title img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 5px 2px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 22px rgba(255, 224, 156, 0.2));
}

.kicker {
  margin: 0;
  color: var(--gold-light);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.62);
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  color: #fffdf0;
  font-family: "Arpona", Arial, sans-serif;
  font-size: clamp(3rem, 7.4vw, 6.35rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 5px 0 rgba(0, 0, 0, 0.4),
    0 0 36px rgba(104, 230, 255, 0.35);
}

.hero-title-prefix,
.hero-title-main {
  display: block;
}

.hero-title-prefix {
  margin-bottom: 0.12em;
  font-size: 0.43em;
  line-height: 1;
}

.hero-title-main {
  font-size: 1em;
  line-height: 0.82;
}

.hero-copy {
  margin: 0;
  width: min(800px, 100%);
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 700;
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.start-button {
  position: relative;
  display: grid;
  place-items: center;
  min-width: min(100%, 348px);
  min-height: 89px;
  margin-top: 12px;
  padding: 0 43px;
  overflow: hidden;
  border: 0;
  color: #39240d;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  font-weight: 900;
  transform: translateY(0);
  transition: transform 180ms ease, filter 180ms ease;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.34));
}

.start-button::before,
.start-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.start-button::before {
  background-image: url("assets/ui/button-normal.avif");
  opacity: 1;
}

.start-button::after {
  background-image: url("assets/ui/button-hover.avif");
  opacity: 0;
}

.button-rim {
  display: none;
}

.button-label {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: translateY(-5px);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

.news-section {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 42px;
  padding: 76px clamp(22px, 5vw, 72px) 88px;
  color: var(--ink);
  background:
    linear-gradient(rgba(247, 249, 245, 0.96), rgba(247, 249, 245, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(7, 24, 50, 0.05) 80px);
}

.news-heading {
  width: min(100%, 980px);
  margin: 0;
}

.news-grid {
  width: min(100%, 760px);
  display: block;
}

.news-card {
  position: relative;
  width: 100%;
  min-height: 260px;
  grid-column: auto;
  display: grid;
  align-items: end;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(11, 31, 58, 0.72);
  color: var(--white);
  background: #071326;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.92),
    0 0 0 7px rgba(241, 189, 84, 0.54),
    0 22px 46px rgba(7, 24, 50, 0.22);
  cursor: pointer;
  text-align: left;
}

.news-card__visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 9, 20, 0.06) 22%, rgba(2, 9, 20, 0.92) 100%),
    url("assets/news/vanguard-news-background.png") center 48% / cover no-repeat;
  transition: transform 360ms ease, filter 360ms ease;
}

.news-card__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 20px 22px;
}

.news-card__meta {
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card__content strong {
  font-family: "Arpona", Arial, sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.12;
  text-transform: uppercase;
}

.news-card__content > span:last-child {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.news-card:hover .news-card__visual,
.news-card:focus-visible .news-card__visual {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.news-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 8px;
}

.news-view-all {
  min-width: 244px;
  min-height: 58px;
  padding: 0 34px;
  border: 2px solid #8f5b1d;
  color: #5c3a12;
  background: linear-gradient(180deg, #fff8ce, #f4c760 62%, #d68b2c);
  clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
  box-shadow: inset 0 0 0 3px rgba(255, 248, 206, 0.68), 0 5px 0 #8f5b1d;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-view-all:hover,
.news-view-all:focus-visible {
  filter: brightness(1.06);
  outline: none;
}

.start-button:hover,
.start-button:focus-visible {
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.38));
  transform: translateY(-2px);
  outline: none;
}

.start-button:hover::before,
.start-button:focus-visible::before {
  opacity: 0;
}

.start-button:hover::after,
.start-button:focus-visible::after {
  opacity: 1;
}

.start-button:active {
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.3));
  transform: translateY(2px) scale(0.985);
}

.spark {
  position: fixed;
  z-index: 80;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold-light);
  pointer-events: none;
  box-shadow: 0 0 18px var(--gold);
  animation: sparkBurst 700ms ease-out forwards;
}

.brush-edge {
  display: none;
}

/* 核心玩法介绍区。 */
.battle-section {
  position: relative;
  padding: 86px clamp(12px, 2vw, 28px) 104px;
  background:
    linear-gradient(180deg, var(--paper), #edf6f5 72%, #dbe9e7);
  color: var(--navy);
}

.battle-section .section-heading {
  width: min(1320px, calc(100vw - clamp(36px, 10vw, 140px)));
}

.battle-section .section-heading h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.85rem);
  white-space: nowrap;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(34px, 1fr) auto minmax(34px, 1fr);
  align-items: center;
  gap: 18px;
  width: min(1320px, calc(100vw - clamp(36px, 10vw, 140px)));
  margin: 0 auto;
  text-align: center;
}

.section-heading span {
  width: min(94px, 100%);
  height: 12px;
  background: url("assets/ui/title-filigree.svg") center / contain no-repeat;
}

.section-heading span:first-child {
  justify-self: end;
}

.section-heading span:last-child {
  justify-self: start;
  transform: scaleX(-1);
}

.section-heading h2 {
  margin: 0;
  font-family: "Arpona", Arial, sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.15rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-intro {
  width: min(820px, 100%);
  margin: 22px auto 48px;
  text-align: center;
  color: #22354c;
  font-weight: 700;
  line-height: 1.65;
}

.feature-grid {
  width: min(1320px, 100%);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}

.feature-grid::before {
  display: none;
}

.feature-card {
  position: relative;
  z-index: 1;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px 28px 46px;
  overflow: hidden;
  color: var(--white);
  background-color: #050e1f;
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(5, 14, 31, 0.48) 35%, rgba(5, 14, 31, 0.94) 100%),
    url("assets/features/opening-scene-02-journey-512.png");
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 240, 166, 0.7);
  clip-path: polygon(14% 0, 86% 0, 100% 16%, 100% 84%, 86% 100%, 14% 100%, 0 84%, 0 16%);
  box-shadow: 0 24px 42px rgba(6, 16, 36, 0.28);
}

.feature-card--emerald {
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(5, 14, 31, 0.48) 35%, rgba(5, 14, 31, 0.94) 100%),
    url("assets/features/opening-scene-02-journey-512.png");
}

.feature-card--violet {
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(5, 14, 31, 0.48) 35%, rgba(5, 14, 31, 0.94) 100%),
    url("assets/features/opening-scene-04-portal-512.png");
}

.feature-card--gold {
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(5, 14, 31, 0.48) 35%, rgba(5, 14, 31, 0.94) 100%),
    url("assets/features/opening-scene-03-battle-512.png");
}

.card-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 240, 166, 0.42);
  clip-path: inherit;
  pointer-events: none;
}

.feature-card::before {
  display: none;
}

.card-number,
.feature-card h3,
.feature-card p {
  position: relative;
  z-index: 1;
}

.card-number {
  margin: 0 0 auto;
  color: var(--gold-light);
  font-family: "Arpona", Arial, sans-serif;
  font-size: 3rem;
  font-weight: 900;
  opacity: 0.78;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.7);
}

.feature-card p:last-child {
  margin: 0;
  min-height: 6.2em;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
  font-weight: 700;
}

/* 守护者角色展示区。 */
.guardians-section {
  position: relative;
  isolation: isolate;
  padding: 82px clamp(18px, 5vw, 70px) 88px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(5, 14, 31, 0.96), rgba(8, 21, 43, 0.94)),
    url("assets/backgrounds/hero-guardians-dungeons.png");
  background-size: cover;
  background-position: center 36%;
  overflow: hidden;
}

.guardians-section::before,
.guardians-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.guardians-section::before {
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 24% 42%, rgba(104, 230, 255, 0.2), transparent 25rem),
    radial-gradient(circle at 80% 22%, rgba(241, 189, 84, 0.12), transparent 24rem),
    linear-gradient(90deg, rgba(5, 14, 31, 0.8), rgba(5, 14, 31, 0.34) 44%, rgba(5, 14, 31, 0.82));
}

.guardians-section::after {
  display: none;
}

.guardians-section > .section-heading {
  position: relative;
  z-index: 1;
}

.guardians-layout {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.guardian-stage {
  width: 100%;
  display: grid;
  gap: 16px;
  min-width: 0;
}

/* 角色职业筛选标签。 */
.guardian-class-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.guardian-class-tabs button {
  min-width: 112px;
  min-height: 42px;
  border: 1px solid rgba(255, 240, 166, 0.45);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(5, 14, 31, 0.72);
  clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 900;
}

.guardian-class-tabs button:hover,
.guardian-class-tabs button:focus-visible,
.guardian-class-tabs button.is-active {
  color: #39240d;
  background: linear-gradient(180deg, #fff2aa, var(--gold) 58%, #c87822);
  outline: none;
}

/* 当前选中角色的主信息卡。 */
.guardian-hero-card {
  position: relative;
  height: 450px;
  min-height: 450px;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: center;
  padding: clamp(22px, 3vw, 30px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(5, 14, 31, 0.82);
  border: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 26px 70px rgba(0, 0, 0, 0.36);
  clip-path: polygon(5% 0, 95% 0, 100% 9%, 100% 91%, 95% 100%, 5% 100%, 0 91%, 0 9%);
  overflow: hidden;
}

.guardian-card-border {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.guardian-card-border polygon {
  fill: none;
  stroke: rgba(255, 240, 166, 0.72);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.guardian-hero-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 240, 166, 0.3);
  clip-path: inherit;
  pointer-events: none;
}

.guardian-hero-card::after {
  content: none;
}

.guardian-portrait {
  position: relative;
  isolation: isolate;
  height: 390px;
  min-height: 0;
  display: grid;
  place-items: end center;
  background:
    radial-gradient(circle at 50% 48%, rgba(104, 230, 255, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  clip-path: polygon(18% 0, 82% 0, 100% 17%, 100% 83%, 82% 100%, 18% 100%, 0 83%, 0 17%);
  overflow: hidden;
}

.guardian-portrait::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: url("assets/ui/gog-glyph.svg") center / 86% no-repeat;
  opacity: 0.68;
  pointer-events: none;
}

.guardian-portrait img {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-height: 360px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.5));
  transition: opacity 180ms ease, transform 220ms ease;
  transform: translateX(var(--guardian-shift-x, 0)) scale(1.08);
  transform-origin: center bottom;
}

.guardian-hero-card[data-active-guardian="Myra"] .guardian-portrait img {
  --guardian-shift-x: 15px;
}

.guardian-hero-card[data-active-guardian="Dolvir"] .guardian-portrait img {
  --guardian-shift-x: 27px;
  width: min(92%, 390px);
  max-height: 340px;
  transform: translateX(var(--guardian-shift-x)) scale(1.04);
}

.guardian-hero-card[data-active-guardian="Lia"] .guardian-portrait img {
  --guardian-shift-x: 12px;
}

.guardian-hero-card[data-active-guardian="Ivar"] .guardian-portrait img {
  --guardian-shift-x: 2px;
}

.guardian-hero-card.is-swapping .guardian-portrait img {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
}

.guardian-info {
  position: relative;
  z-index: 1;
}

.guardian-info h3 {
  margin: 0 0 12px;
  font-family: "Arpona", Arial, sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.65rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 4px 26px rgba(104, 230, 255, 0.25);
}

.guardian-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
  min-width: 0;
}

.guardian-stat-grid div {
  min-width: 0;
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 240, 166, 0.24);
  overflow: hidden;
  text-align: center;
}

.guardian-stat-grid span {
  color: rgba(255, 255, 255, 0.58);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 900;
}

.guardian-stat-grid strong {
  display: block;
  max-width: 100%;
  color: var(--gold-light);
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.guardian-stat-grid strong[data-guardian-power] {
  font-size: clamp(0.74rem, 0.92vw, 0.9rem);
}

.guardian-info [data-guardian-bio] {
  margin: 0;
  height: 144px;
  min-height: 144px;
  max-height: 144px;
  padding-right: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  line-height: 1.5;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 240, 166, 0.48) rgba(5, 14, 31, 0.38);
}

.guardian-abilities {
  position: relative;
  margin-top: 14px;
}

.guardian-abilities__title {
  margin: 0 0 8px;
  color: var(--gold-light);
  font-family: "Arpona", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guardian-abilities__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 82px));
  justify-content: start;
  gap: 10px;
}

.guardian-ability {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 7px;
  justify-items: center;
  cursor: pointer;
  outline: none;
}

.guardian-ability__frame {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  padding: 2px;
  background: rgba(255, 240, 166, 0.62);
  clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10%);
}

.guardian-ability img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  background: rgba(5, 14, 31, 0.86);
  border: 0;
  clip-path: inherit;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
  transition: transform 180ms ease, filter 180ms ease;
}

.guardian-ability:hover img {
  filter: brightness(1.1);
}

.guardian-ability:focus-visible .guardian-ability__frame {
  filter: brightness(1.18);
}

.guardian-ability figcaption {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guardian-skill-detail {
  --skill-pointer-x: 12.5%;
  position: absolute;
  z-index: 12;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  height: auto;
  min-height: 118px;
  max-height: none;
  padding: 16px 44px 16px 18px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent),
    rgba(4, 15, 34, 0.98);
  border: 2px solid rgba(255, 221, 130, 0.84);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
  transform-origin: var(--skill-pointer-x) 100%;
  overflow: visible;
}

.guardian-skill-detail[hidden] {
  display: none;
}

.guardian-skill-detail::before,
.guardian-skill-detail::after {
  content: "";
  position: absolute;
  left: var(--skill-pointer-x);
  transform: translateX(-50%);
  transition: left 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.guardian-skill-detail::before {
  z-index: 1;
  bottom: -3px;
  width: 46px;
  height: 7px;
  background: #07162d;
}

.guardian-skill-detail::after {
  z-index: 2;
  bottom: -15px;
  width: 28px;
  height: 28px;
  background: #07162d;
  border-right: 2px solid rgba(255, 221, 130, 0.84);
  border-bottom: 2px solid rgba(255, 221, 130, 0.84);
  transform: translateX(-50%) rotate(45deg);
}

.guardian-skill-detail__name {
  margin: 0 0 7px;
  color: var(--gold-light);
  font-family: "Arpona", Arial, sans-serif;
  font-size: clamp(0.9rem, 1.15vw, 1.08rem);
  font-weight: 900;
  letter-spacing: 0.035em;
}

.guardian-skill-detail__effect {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.73rem, 0.88vw, 0.84rem);
  font-weight: 650;
  line-height: 1.4;
}

.guardian-skill-detail__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 240, 166, 0.5);
  border-radius: 50%;
  color: var(--white);
  background: rgba(5, 14, 31, 0.82);
  cursor: pointer;
  font-size: 0;
  line-height: 0;
}

.guardian-skill-detail__close::before,
.guardian-skill-detail__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.guardian-skill-detail__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.guardian-skill-detail__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@keyframes skillPopupIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.guardian-skill-detail.is-opening {
  animation: skillPopupIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.guardian-skill-detail.is-closing {
  pointer-events: none;
  animation: skillPopupOut 180ms ease-in both;
}

.guardian-skill-detail.is-switching-out .guardian-skill-detail__name,
.guardian-skill-detail.is-switching-out .guardian-skill-detail__effect {
  animation: skillContentOut 120ms ease-in both;
}

.guardian-skill-detail.is-switching-in .guardian-skill-detail__name,
.guardian-skill-detail.is-switching-in .guardian-skill-detail__effect {
  animation: skillContentIn 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes skillPopupOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

@keyframes skillContentOut {
  to {
    opacity: 0;
    transform: translateY(-7px);
  }
}

@keyframes skillContentIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guardian-hero-card.is-swapping .guardian-ability img {
  opacity: 0;
  transform: translateY(8px) scale(0.94);
}

/* 可切换的守护者缩略列表。 */
.guardian-roster {
  display: grid;
  grid-template-columns: repeat(4, minmax(176px, 202px));
  justify-content: center;
  gap: 14px;
}

.guardian-token-shell {
  min-width: 0;
  overflow: visible;
  transition: filter 200ms ease;
}

.guardian-token-shell:has(.guardian-token.is-active) {
  filter:
    drop-shadow(0 0 5px rgba(255, 231, 151, 0.9))
    drop-shadow(0 0 13px rgba(244, 188, 73, 0.68))
    drop-shadow(0 0 24px rgba(190, 118, 25, 0.42));
}

.guardian-token-shell:has(.guardian-token.is-hidden) {
  display: none;
}

.guardian-token {
  --token-border: rgba(159, 179, 186, 0.48);
  --token-fill: rgba(5, 14, 31, 0.9);
  position: relative;
  min-height: 104px;
  width: 100%;
  display: grid;
  grid-template-columns: 78px minmax(0, auto);
  grid-template-rows: 1fr 1fr;
  align-items: center;
  column-gap: 8px;
  row-gap: 0;
  padding: 10px 12px;
  color: var(--white);
  background: var(--token-border);
  border: 0;
  clip-path: polygon(12% 0, 88% 0, 100% 12%, 100% 88%, 88% 100%, 12% 100%, 0 88%, 0 12%);
  cursor: pointer;
  transition: filter 180ms ease, background 180ms ease;
  overflow: hidden;
}

.guardian-token::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  background: var(--token-fill);
  clip-path: inherit;
  pointer-events: none;
}

.guardian-token > * {
  position: relative;
  z-index: 1;
}

.guardian-token__portrait {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 78px;
  height: 78px;
  justify-self: center;
  align-self: center;
  display: grid;
  padding: 2px;
  background: rgba(159, 179, 186, 0.72);
  clip-path: polygon(12% 0, 88% 0, 100% 12%, 100% 88%, 88% 100%, 12% 100%, 0 88%, 0 12%);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.34));
}

.guardian-token__portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: rgba(3, 10, 24, 0.78);
  clip-path: polygon(12% 0, 88% 0, 100% 12%, 100% 88%, 88% 100%, 12% 100%, 0 88%, 0 12%);
}

.guardian-token > span:not(.guardian-token__portrait) {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  width: 100%;
  margin-bottom: 3px;
  text-align: left;
  font-family: "Arpona", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.guardian-token strong {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  width: 100%;
  text-align: left;
  color: var(--gold-light);
  text-transform: uppercase;
  font-size: 0.68rem;
}

.guardian-token:hover,
.guardian-token:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

.guardian-token.is-active {
  --token-border: #f4d477;
  --token-fill:
    linear-gradient(135deg, rgba(116, 80, 22, 0.48), rgba(17, 30, 49, 0.96) 48%, rgba(87, 60, 18, 0.38)),
    rgba(5, 14, 31, 0.96);
  outline: none;
}

.guardian-token.is-active::before {
  inset: 2px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 192, 0.34),
    inset 0 0 24px rgba(230, 169, 55, 0.22);
}

.guardian-token.is-active .guardian-token__portrait {
  background: #ffe58f;
  filter:
    drop-shadow(0 0 5px rgba(255, 222, 115, 0.32))
    drop-shadow(0 6px 8px rgba(0, 0, 0, 0.34));
}

.guardian-token.is-active > span:not(.guardian-token__portrait) {
  color: #fff0a6;
  text-shadow: 0 0 8px rgba(255, 214, 92, 0.24);
}

.guardian-token.is-active strong {
  color: #ffd765;
}

.guardian-token.is-hidden {
  display: none;
}

/* 9:16 竖屏宣传片播放器。 */
.pv-panel {
  display: grid;
  align-items: center;
}

.pv-frame {
  width: min(100%, 330px);
  justify-self: center;
  aspect-ratio: 9 / 16;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 240, 166, 0.42), rgba(104, 230, 255, 0.12)),
    rgba(5, 14, 31, 0.8);
  border: 1px solid rgba(255, 240, 166, 0.42);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.38);
  clip-path: polygon(8% 0, 92% 0, 100% 6%, 100% 94%, 92% 100%, 8% 100%, 0 94%, 0 6%);
}

.pv-screen {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 14, 31, 0.46), rgba(5, 14, 31, 0.9)),
    url("assets/backgrounds/hero-guardians-dungeons.png");
  background-size: cover;
  background-position: center;
  clip-path: inherit;
}

.pv-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
}

.pv-screen.is-playing .pv-video {
  opacity: 1;
}

.pv-screen.is-playing .pv-copy,
.pv-screen.is-playing .pv-play {
  opacity: 0;
}

.pv-screen.is-playing:hover .pv-play,
.pv-screen.is-playing:focus-within .pv-play {
  opacity: 1;
}

.pv-screen::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 1;
  border: 1px solid rgba(255, 240, 166, 0.25);
  clip-path: inherit;
}

.pv-play {
  position: relative;
  z-index: 2;
  width: 86px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 240, 166, 0.72);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 240, 166, 0.42), rgba(241, 189, 84, 0.18) 52%, rgba(5, 14, 31, 0.68));
  cursor: pointer;
  box-shadow: 0 0 42px rgba(241, 189, 84, 0.42);
  transition: opacity 180ms ease, transform 180ms ease;
}

.pv-play span {
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 22px solid var(--gold-light);
  transform: translate(-50%, -50%);
}

.pv-play:hover,
.pv-play:focus-visible {
  outline: none;
  transform: scale(1.05);
}

.pv-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 28px;
  z-index: 2;
  text-align: center;
}

.pv-copy h3 {
  margin: 8px 0 0;
  font-family: "Arpona", Arial, sans-serif;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 0.95;
  text-transform: uppercase;
}

/* 遗物商店区域。 */
.store-section {
  position: relative;
  padding: 94px clamp(18px, 5vw, 70px) 106px;
  background:
    linear-gradient(180deg, rgba(2, 10, 24, 0.22), rgba(2, 9, 22, 0.42)),
    url("assets/backgrounds/equipment-wall-background.png") center / cover no-repeat;
  background-color: #030c1c;
  overflow: hidden;
}

.store-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 62% 52%, rgba(8, 23, 48, 0.08), rgba(2, 8, 19, 0.28) 72%),
    linear-gradient(90deg, rgba(1, 7, 17, 0.14), transparent 24%, transparent 78%, rgba(1, 7, 17, 0.16));
  pointer-events: none;
}

.section-heading--light h2 {
  color: #fffdf0;
  text-shadow: 0 3px 22px rgba(104, 230, 255, 0.24);
}

.store-layout {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: minmax(250px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(24px, 3vw, 42px);
  align-items: center;
}

.store-copy {
  min-width: 0;
}

.store-copy h3 {
  margin: 0 0 18px;
  font-family: "Arpona", Arial, sans-serif;
  font-size: clamp(2rem, 3.7vw, 3.6rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.store-copy p:not(.kicker) {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  line-height: 1.75;
}

.equipment-browser {
  display: grid;
  gap: 28px;
}

.equipment-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.store-items {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.equipment-filters button {
  --inactive-border: #7b818a;
  --inactive-fill: #373d47;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  width: 156px;
  min-width: 156px;
  height: 40px;
  min-height: 40px;
  flex: 0 0 156px;
  box-sizing: border-box;
  padding: 0 24px;
  background: transparent;
  border: 0;
  clip-path: none;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.24));
  transform: none;
  transition: color 180ms ease, transform 180ms ease, filter 180ms ease;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.equipment-filters button::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 3px 7px;
  background: var(--inactive-border);
  clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
  opacity: 1;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.equipment-filters button::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 4px 8px;
  display: block;
  background: var(--inactive-fill);
  clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
  opacity: 1;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.equipment-filters button span {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: translateY(-2px);
}

.equipment-filters button:hover,
.equipment-filters button:focus-visible {
  --inactive-border: #a0a6ae;
  --inactive-fill: #484f59;
  color: var(--white);
  filter: brightness(1.04) drop-shadow(0 4px 5px rgba(0, 0, 0, 0.26));
  transform: translateY(-2px);
  outline: none;
}

.equipment-filters button:hover::before,
.equipment-filters button:focus-visible::before {
  opacity: 1;
}

.equipment-filters button.is-active {
  color: #5f431d;
  background: url("assets/ui/button-normal.avif") center / 100% 100% no-repeat;
  clip-path: none;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.28));
  transform: none;
}

.equipment-filters button.is-active::before {
  opacity: 0;
}

.equipment-filters button.is-active::after {
  opacity: 0;
}

.equipment-filters button:active {
  transform: translateY(1px) scale(0.985);
}

.shop-card {
  --shop-border: rgba(159, 179, 186, 0.48);
  position: relative;
  min-height: 250px;
  height: 100%;
  display: grid;
  grid-template-rows: 96px auto auto;
  align-content: start;
  justify-items: start;
  gap: 10px;
  padding: 18px 22px 30px;
  color: var(--white);
  background: var(--shop-border);
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 38px rgba(0, 0, 0, 0.26);
  clip-path: polygon(9% 0, 91% 0, 100% 10%, 100% 90%, 91% 100%, 9% 100%, 0 90%, 0 10%);
  transition: opacity 220ms ease, transform 220ms ease;
}

.shop-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 12%;
  right: 12%;
  bottom: 16px;
  height: 1px;
  background: var(--shop-border);
  opacity: 0.72;
}

.shop-card::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(5, 14, 31, 0.96);
  clip-path: inherit;
  pointer-events: none;
}

.shop-card > * {
  position: relative;
  z-index: 1;
}

.shop-card.is-changing {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}

.shop-card.is-featured {
  border-color: rgba(255, 240, 166, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(255, 240, 166, 0.24),
    0 18px 48px rgba(241, 189, 84, 0.18);
}

.shop-card--prismatic {
  --shop-border: linear-gradient(135deg, #f7e0ff, #7b68ee, #67d8ff, #de4ed9, #f7e0ff);
  box-shadow:
    inset 0 0 0 1px rgba(247, 224, 255, 0.22),
    0 18px 48px rgba(123, 104, 238, 0.2);
}

.shop-card--orange {
  --shop-border: #b86616;
  box-shadow:
    inset 0 0 0 1px rgba(226, 125, 58, 0.22),
    0 18px 48px rgba(226, 125, 58, 0.18);
}

.shop-card--violet {
  --shop-border: #7a2c98;
  box-shadow:
    inset 0 0 0 1px rgba(222, 78, 217, 0.22),
    0 18px 48px rgba(222, 78, 217, 0.18);
}

.shop-card.is-hidden {
  display: none;
}

.equipment-art {
  width: 100%;
  min-height: 180px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  background:
    radial-gradient(circle, rgba(104, 230, 255, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  clip-path: polygon(8% 0, 92% 0, 100% 12%, 100% 88%, 92% 100%, 8% 100%, 0 88%, 0 12%);
}

.item-gem {
  width: 68px;
  aspect-ratio: 1;
  position: relative;
  margin-bottom: 8px;
  background:
    radial-gradient(circle at 34% 24%, #ffffff 0 7%, transparent 8%),
    linear-gradient(135deg, #68e6ff, #19d79a 48%, #0d4b64);
  clip-path: polygon(50% 0, 88% 22%, 100% 62%, 50% 100%, 0 62%, 12% 22%);
  box-shadow: 0 0 28px rgba(104, 230, 255, 0.42);
}

.equipment-image {
  width: 88px;
  height: 88px;
  margin: 0;
  align-self: center;
  justify-self: center;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.46));
}

.announcement-overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(1, 7, 18, 0.66);
  backdrop-filter: blur(4px);
}

.announcement-overlay[hidden] {
  display: none;
}

.announcement-drawer {
  position: relative;
  width: min(780px, 94vw);
  height: 100%;
  overflow-y: auto;
  padding: clamp(76px, 8vw, 108px) clamp(28px, 5vw, 64px) 48px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(8, 22, 45, 0.98), rgba(4, 13, 29, 0.99)),
    radial-gradient(circle at 90% 10%, rgba(104, 230, 255, 0.12), transparent 24rem);
  border-left: 2px solid rgba(241, 189, 84, 0.76);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.48);
  clip-path: polygon(7% 0, 100% 0, 100% 100%, 7% 100%, 0 94%, 0 6%);
}

.announcement-close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 240, 166, 0.56);
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(5, 14, 31, 0.7);
  cursor: pointer;
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.announcement-close::before,
.announcement-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
}

.announcement-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.announcement-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.announcement-kicker,
.announcement-date {
  color: var(--gold-light);
  font-weight: 900;
  text-transform: uppercase;
}

.announcement-kicker {
  display: inline-block;
  margin: 0 0 22px;
  padding: 8px 18px;
  border: 1px solid rgba(241, 189, 84, 0.58);
}

.announcement-drawer h2 {
  margin: 0;
  color: #fffdf0;
  font-family: "Arpona", Arial, sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.announcement-date {
  margin: 20px 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(241, 189, 84, 0.42);
  font-size: 0.82rem;
}

.announcement-copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.68;
}

.announcement-copy p {
  margin: 0 0 22px;
}

.announcement-copy em {
  color: #fffdf0;
  font-family: "Arpona", Arial, sans-serif;
  font-style: italic;
  font-weight: 800;
}

.announcement-copy strong {
  color: #f2cf68;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: none;
}

.announcement-join {
  width: min(100%, 320px);
  min-height: 82px;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  margin: 20px auto 6px;
  overflow: hidden;
  border: 0;
  color: #39240d;
  background: transparent;
  filter: drop-shadow(0 7px 8px rgba(0, 0, 0, 0.32));
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(0);
  transition: transform 180ms ease, filter 180ms ease;
}

.announcement-join::before,
.announcement-join::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.announcement-join::before {
  background-image: url("assets/ui/button-normal.avif");
  opacity: 1;
}

.announcement-join::after {
  background-image: url("assets/ui/button-hover.avif");
  opacity: 0;
}

.announcement-join span {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: translateY(-5px);
}

.announcement-join:hover,
.announcement-join:focus-visible {
  filter: drop-shadow(0 9px 10px rgba(0, 0, 0, 0.36));
  transform: translateY(-2px);
  outline: none;
}

.announcement-join:hover::before,
.announcement-join:focus-visible::before {
  opacity: 0;
}

.announcement-join:hover::after,
.announcement-join:focus-visible::after {
  opacity: 1;
}

.announcement-join:active {
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.28));
  transform: translateY(2px) scale(0.985);
}

.announcement-is-open {
  overflow: hidden;
}

.announcement-is-open .back-to-top {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
  transform: translateY(18px) scale(0.88) !important;
}


.item-gem--crown {
  background:
    radial-gradient(circle at 34% 24%, #ffffff 0 7%, transparent 8%),
    linear-gradient(135deg, #fff0a6, #f1bd54 48%, #9b511b);
  box-shadow: 0 0 30px rgba(241, 189, 84, 0.54);
}

.item-gem--potion {
  background:
    radial-gradient(circle at 34% 24%, #ffffff 0 7%, transparent 8%),
    linear-gradient(135deg, #ffb1c0, #d8404a 46%, #5a1125);
  box-shadow: 0 0 28px rgba(216, 64, 74, 0.38);
}

.rarity {
  margin: 0;
  color: var(--gold-light);
  text-transform: uppercase;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.035em;
}

.shop-card--prismatic .rarity {
  color: #f7e0ff;
}

.shop-card--orange .rarity {
  color: #e27d3a;
}

.shop-card--violet .rarity {
  color: #de4ed9;
}

.shop-card h4 {
  margin: 0;
  height: 2.3em;
  min-height: 2.3em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: "Arpona", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.shop-card p:not(.rarity) {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.94rem;
  line-height: 1.5;
  font-weight: 700;
}

/* 游戏启动弹窗及遮罩。 */
.launch-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 8, 18, 0.72);
  backdrop-filter: blur(8px);
}

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

.launch-panel {
  position: relative;
  width: min(560px, 100%);
  padding: 36px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(14, 38, 67, 0.96), rgba(6, 16, 36, 0.98)),
    radial-gradient(circle at 50% 0, rgba(241, 189, 84, 0.2), transparent 22rem);
  border: 2px solid rgba(255, 240, 166, 0.72);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  clip-path: polygon(8% 0, 92% 0, 100% 12%, 100% 88%, 92% 100%, 8% 100%, 0 88%, 0 12%);
  text-align: center;
}

.launch-panel h2 {
  margin: 10px 0 26px;
  font-family: "Arpona", Arial, sans-serif;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.close-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 240, 166, 0.45);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.launch-meter {
  width: 100%;
  height: 16px;
  padding: 3px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 240, 166, 0.42);
}

.launch-meter span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--emerald), var(--cyan), var(--gold-light));
  animation: loadGate 2.4s ease forwards;
}

.launch-status {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

/* 页面底部的临时反馈提示。 */
.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 28px;
  min-width: min(320px, calc(100vw - 36px));
  padding: 14px 18px;
  color: var(--white);
  background: rgba(5, 14, 31, 0.94);
  border: 1px solid rgba(255, 240, 166, 0.5);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
  text-align: center;
  font-weight: 800;
  transform: translate(-50%, 120px);
  transition: transform 260ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
}

.back-to-top {
  position: fixed;
  z-index: 80;
  right: 28px;
  bottom: 28px;
  width: 75px;
  height: 75px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: transparent;
  background: transparent url("assets/ui/up-arrow.svg") center / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.34));
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.94);
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

.back-to-top::before {
  content: none;
}

.back-to-top::after {
  content: none;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  outline: none;
  filter: brightness(1.1) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.38));
  transform: translateY(-2px) scale(1.05);
}

/* 动效定义：背景漂移、符文漂浮、按钮光效、粒子爆发和加载进度。 */
@keyframes artDrift {
  from { transform: scale(1.015) translate3d(-3px, -1px, 0); }
  to { transform: scale(1.035) translate3d(4px, 2px, 0); }
}

@keyframes floatRune {
  0% { opacity: 0; transform: translateY(30px) rotate(45deg) scale(0.6); }
  20% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-120px) rotate(225deg) scale(1.2); }
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(80, 49, 16, 0.9), 0 0 0 6px rgba(255, 237, 165, 0.38), 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 30px rgba(241, 189, 84, 0.42); }
  50% { box-shadow: 0 0 0 3px rgba(80, 49, 16, 0.9), 0 0 0 9px rgba(255, 237, 165, 0.5), 0 22px 54px rgba(0, 0, 0, 0.5), 0 0 54px rgba(104, 230, 255, 0.45); }
}

@keyframes buttonShine {
  0%, 34% { transform: translateX(-130%); }
  64%, 100% { transform: translateX(130%); }
}

@keyframes rimSpin {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}

@keyframes sparkBurst {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0); }
}

@keyframes loadGate {
  from { width: 0; }
  to { width: 100%; }
}

/* 平板与窄屏布局：多列内容改为单列。 */
/* Site-wide typography hierarchy: body 500, supporting copy 600, controls 700, headings 800. */
body {
  font-weight: 500;
}

.news-card__content > span:last-child,
.feature-card p:last-child,
.guardian-skill-detail__effect,
.announcement-copy,
.shop-card p:not(.rarity),
.launch-status {
  font-weight: 500;
}

.hero-copy,
.section-intro,
.guardian-info [data-guardian-bio],
.store-copy p:not(.kicker) {
  font-weight: 600;
}

button,
.start-button,
.announcement-join,
.announcement-bar__badge,
.announcement-bar__title,
.announcement-bar__more,
.main-nav a,
.kicker,
.news-card__meta,
.news-view-all,
.guardian-class-tabs button,
.guardian-stat-grid span,
.guardian-abilities__title,
.guardian-ability figcaption,
.guardian-skill-detail__name,
.guardian-token > span:not(.guardian-token__portrait),
.guardian-token strong,
.equipment-filters button,
.announcement-kicker,
.announcement-date,
.launch-kicker,
.toast {
  font-weight: 700;
}

.brand span {
  font-weight: 700;
}

.brand strong,
.hero h1,
.section-heading h2,
.card-number,
.feature-card h3,
.guardian-info h3,
.pv-copy h3,
.store-copy h3,
.announcement-drawer h2,
.shop-card h4,
.launch-panel h2 {
  font-weight: 800;
}

.rarity {
  font-weight: 900;
}

@media (max-width: 900px) {
  .news-grid {
    width: min(100%, 620px);
  }

  .news-card {
    width: 100%;
    grid-column: auto;
  }

  .guardians-layout,
  .guardian-hero-card,
  .store-layout,
  .store-grid {
    grid-template-columns: 1fr;
  }

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

  .feature-grid::before {
    display: none;
  }

  .feature-card {
    min-height: 330px;
    background-size: cover;
  }

  .store-copy {
    text-align: center;
  }

  .guardian-hero-card {
    height: auto;
    min-height: 0;
  }

  .guardian-portrait {
    height: 300px;
    min-height: 0;
  }

  .guardian-portrait img {
    max-height: 270px;
    transform: translateX(var(--guardian-shift-x, 0)) scale(1.08);
  }

  .guardian-hero-card[data-active-guardian="Dolvir"] .guardian-portrait img {
    max-height: 255px;
    transform: translateX(var(--guardian-shift-x)) scale(1.04);
  }

  .guardian-info [data-guardian-bio] {
    height: 132px;
    min-height: 132px;
    max-height: 132px;
  }

  .guardian-info {
    text-align: center;
  }

  .guardian-abilities {
    width: min(520px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .guardian-stat-grid {
    grid-template-columns: 1fr;
  }

  .guardian-roster {
    grid-template-columns: repeat(4, minmax(150px, 202px));
    justify-content: center;
    gap: 12px;
    overflow: visible;
    padding-bottom: 0;
  }

  .guardian-token-shell {
    scroll-snap-align: start;
  }

  .guardian-abilities__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .guardian-skill-detail {
    left: 2%;
    right: 2%;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

}

/* 手机布局：进一步压缩导航、留白和角色卡尺寸。 */
@media (max-width: 640px) {
  .battle-section .section-heading h2 {
    font-size: clamp(1rem, 4.8vw, 1.35rem);
  }

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

  .topbar {
    height: 68px;
    padding: 0 16px;
  }

  .announcement-bar {
    top: 68px;
    min-height: 44px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 5px 12px;
  }

  .announcement-bar__badge {
    padding: 6px 12px;
    font-size: 0.66rem;
  }

  .announcement-bar__title {
    font-size: 0.78rem;
  }

  .announcement-bar__more {
    display: none;
  }

  .announcement-drawer {
    width: 100%;
    clip-path: none;
    padding: 82px 24px 40px;
  }

  .brand img {
    width: 110px;
  }

  .main-nav {
    gap: 18px;
  }

  .main-nav a {
    font-size: 0.84rem;
  }

  .hero {
    min-height: 640px;
    padding: 88px 18px 40px;
  }

  .hero-content {
    transform: translateY(12px);
  }

  .hero h1 {
    max-width: 430px;
  }

  .hero-logo-title {
    width: min(480px, 88vw);
  }

  .start-button {
    min-width: min(100%, 312px);
    min-height: 84px;
  }

  .news-section {
    gap: 30px;
    padding: 62px 18px 70px;
  }

  .news-card {
    min-height: 220px;
  }

  .news-card__content {
    padding: 20px;
  }

  .news-heading {
    grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
    gap: 10px;
  }

  .news-heading span {
    width: 94px;
  }

  .news-view-all {
    min-width: 210px;
  }

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

  .section-heading span {
    width: 94px;
    justify-self: center;
  }

  .battle-section,
  .guardians-section,
  .store-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .guardians-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .guardians-layout {
    margin-top: 30px;
  }

  .guardian-hero-card {
    padding: 20px 16px;
    width: 100%;
    max-width: 100%;
  }

  .guardian-portrait {
    height: 280px;
    min-height: 0;
  }

  .guardian-portrait img {
    max-height: 250px;
    transform: translateX(var(--guardian-shift-x, 0)) scale(1.08);
  }

  .guardian-hero-card[data-active-guardian="Dolvir"] .guardian-portrait img {
    max-height: 235px;
    transform: translateX(var(--guardian-shift-x)) scale(1.04);
  }

  .guardian-stat-grid {
    grid-template-columns: 1fr;
  }

  .guardian-roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .guardian-token {
    min-height: 92px;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    column-gap: 9px;
    padding: 10px 12px;
  }

  .guardian-token__portrait {
    width: 60px;
    height: 60px;
  }

  .guardian-token strong {
    font-size: 0.62rem;
  }

  .guardian-token > span:not(.guardian-token__portrait) {
    font-size: 0.86rem;
  }

  .guardian-skill-detail {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

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

  .equipment-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .equipment-filters button {
    min-width: 0;
    width: 100%;
    flex-basis: auto;
    padding: 0 12px;
  }

  .launch-panel {
    padding: 34px 22px;
  }

  .back-to-top {
    display: none;
    right: 28px;
    bottom: 28px;
    width: 45px;
    height: 45px;
  }
}

/* 小屏手机的宽度保护。 */
@media (max-width: 480px) {
  .guardians-layout,
  .guardian-stage,
  .guardian-hero-card,
  .guardian-info,
  .guardian-roster {
    min-width: 0;
    width: 100%;
  }

  .guardian-stat-grid {
    grid-template-columns: 1fr;
  }

  .guardian-roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guardian-stat-grid div {
    min-height: 68px;
  }

  .guardian-token {
    min-height: 86px;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    column-gap: 8px;
    padding: 9px 10px;
  }

  .guardian-token__portrait {
    width: 54px;
    height: 54px;
  }

  .guardian-token > span:not(.guardian-token__portrait) {
    font-size: 0.78rem;
  }

  .guardian-token strong {
    font-size: 0.56rem;
  }
}

/* 尊重系统“减少动态效果”偏好，提升可访问性。 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
