:root {
  --scene-offset-y: 0px;
  --footer-lift: 14px;
  --header-asset-offset-y: -6px;
  --header-height: 334px;
  --header-content-height: 96px;
  --header-content-offset-y: 2px;
  --scene-height: 1268px;
  --nav-bg-image: url("image/2560/background/home_dh_2560.png");
  --header-bg-size: auto;
  --main-bg-image: url("image/2560/background/home_bg_2560.jpg");
  --download-bg-image: url("image/2560/background/download_bg_2560.jpg");
  --panel-bg-size: auto;
  --footer-bg-height: 67px;
  --footer-image-width: 747px;
  --footer-image-height: 67px;
  --logo-width: 500px;
  --logo-height: 184px;
  --steam-width: 786px;
  --steam-height: 255px;
  --title-main-width: 2252px;
  --title-main-height: 460px;
  --title-download-width: 1410px;
  --title-download-height: 462px;
  --coin-width: 496px;
  --coin-height: 496px;
  --bg: #05080d;
  --panel-bg: #0b1218;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.72);
  --accent: #6ad3d7;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  min-height: max(100vh, calc(var(--scene-height) + var(--scene-offset-y)));
}

body::selection {
  background: rgba(255, 214, 122, 0.18);
}

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

.protected-asset {
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.slice-asset {
  position: relative;
  overflow: hidden;
}

.slice-asset .asset-slice {
  position: absolute;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  transform: translateZ(0);
}

.anti-capture-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -24deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 2px,
      transparent 2px,
      transparent 24px
    );
  mix-blend-mode: screen;
  opacity: 0.55;
}

.anti-capture-overlay::before {
  content: "CLAWCARD  PREVIEW  CLAWCARD  PREVIEW  CLAWCARD  PREVIEW";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.045);
  font-size: clamp(28px, 4vw, 64px);
  font-weight: 700;
  letter-spacing: 0.28em;
  transform: rotate(-18deg);
  white-space: nowrap;
}

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

.site-header {
  position: fixed;
  top: var(--scene-offset-y);
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  background: var(--nav-bg-image) center top / var(--header-bg-size) no-repeat;
  border-bottom: none;
  box-shadow: none;
  pointer-events: none;
}

.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: var(--header-content-height);
  transform: translateY(calc(var(--header-content-offset-y) + var(--header-asset-offset-y)));
  pointer-events: auto;
}

.brand-logo {
  width: var(--logo-width);
  height: var(--logo-height);
  display: block;
}

.site-nav {
  position: absolute;
  left: 50%;
  top: calc(var(--header-content-height) / 2);
  transform: translate(-50%, calc(-50% + var(--header-content-offset-y)));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  height: auto;
  white-space: nowrap;
  pointer-events: auto;
}

.site-nav a {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-current {
  color: #fff;
}

.header-download {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: var(--header-content-height);
  transform: translateY(calc(var(--header-content-offset-y) + var(--header-asset-offset-y)));
  pointer-events: auto;
}

.header-download-image {
  width: var(--steam-width);
  height: var(--steam-height);
  display: block;
}

.page-main {
  position: relative;
  height: var(--scene-height);
  min-height: var(--scene-height);
  margin-top: var(--scene-offset-y);
  padding-top: 0;
}

.panel {
  position: relative;
  min-height: var(--scene-height);
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--panel-bg);
}

.panel.is-active {
  display: flex;
}

.site-footer {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--scene-height) + var(--scene-offset-y));
  transform: translateY(calc(-100% - var(--footer-lift)));
  z-index: 90;
  background: none;
  border-top: none;
  box-shadow: none;
  padding: 0;
  pointer-events: none;
  height: var(--footer-bg-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-inner {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.footer-banner {
  width: var(--footer-image-width);
  height: var(--footer-image-height);
  max-width: none;
  flex: 0 0 auto;
  background-size: auto;
  background-position: center center;
}

.panel-shell {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100vw - 48px));
  min-height: calc(var(--scene-height) - 48px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-bg,
.panel-overlay {
  position: absolute;
  inset: 0;
}

.panel-bg {
  background-position: top center;
  background-repeat: no-repeat;
  background-size: var(--panel-bg-size);
}

.panel-overlay {
  display: none;
}

.panel-home .panel-bg,
.panel-factions .panel-bg,
.panel-gameplay .panel-bg,
.panel-news .panel-bg {
  background-image: var(--main-bg-image);
}

.panel-download .panel-bg {
  background-image: var(--download-bg-image);
}

.panel-inner {
  position: relative;
  width: min(980px, calc(100vw - 96px));
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-layout,
.download-layout {
  gap: 18px;
}

.gameplay-layout {
  gap: 26px;
}

.news-layout {
  gap: 26px;
}

.factions-layout {
  width: min(1200px, calc(100vw - 120px));
  height: min(72vh, 920px);
}

.content-title-image,
.download-title-image {
  width: auto;
}

.content-title-image {
  width: var(--title-main-width);
  height: var(--title-main-height);
}

.download-title-image {
  width: var(--title-download-width);
  height: var(--title-download-height);
}

.gameplay-copy {
  width: min(820px, 88vw);
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.8;
  text-align: center;
  text-wrap: balance;
}

.news-copy {
  width: min(820px, 88vw);
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.download-assets {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.download-coin-image {
  width: var(--coin-width);
  height: var(--coin-height);
}

.download-cta-image {
  width: var(--steam-width);
  height: var(--steam-height);
}

.factions-wall {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 3vw, 42px);
  overflow: hidden;
  perspective: 2200px;
}

.factions-orbit-scene {
  position: relative;
  width: 100%;
  flex: 1 1 0;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.factions-ring {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.faction-skin-controls {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.4vw, 20px);
  flex: 0 0 auto;
}

.faction-skin-button {
  min-width: 74px;
  height: 34px;
  padding: 0 18px;
  border: 1px solid rgba(215, 178, 91, 0.58);
  background: rgba(5, 9, 12, 0.44);
  color: rgba(244, 241, 234, 0.78);
  font: 700 14px/1 "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.faction-skin-button:hover,
.faction-skin-button.is-active {
  color: #fff;
  border-color: rgba(234, 190, 99, 0.95);
  background: rgba(176, 112, 31, 0.28);
  box-shadow: 0 0 18px rgba(224, 161, 66, 0.22);
}

.faction-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(108px, 8.2vw, 138px);
  aspect-ratio: 240 / 336;
  perspective: 1200px;
  transform-style: preserve-3d;
  transform:
    translate(-50%, -50%)
    translate3d(var(--x, 0px), var(--y, 0px), 0)
    scale(var(--scale, 1))
    rotateZ(var(--tilt, 0deg));
  transform-origin: center center;
  transition: filter 0.28s ease;
  cursor: pointer;
  will-change: transform;
}

.faction-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.3s ease, box-shadow 0.3s ease;
}

.faction-card-face {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition:
    transform 0.82s cubic-bezier(0.18, 0.8, 0.18, 1),
    opacity 0.45s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
  transform-origin: center center;
}

.faction-card:hover .faction-card-face {
  box-shadow:
    0 42px 82px rgba(0, 0, 0, 0.68),
    0 18px 30px rgba(0, 0, 0, 0.34),
    0 0 42px rgba(255, 214, 122, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.faction-card.is-flipped {
  z-index: 5;
  filter: brightness(1.12) saturate(1.18);
  transform:
    translate(-50%, -50%)
    translate3d(var(--x, 0px), calc(var(--y, 0px) - 16px), 80px)
    scale(calc(var(--scale, 1) * 1.18))
    rotateZ(var(--tilt, 0deg));
}

.faction-card.is-flipped .faction-card-inner {
  transform: rotateX(-8deg);
}

.faction-card.is-flipped .faction-card-face {
  box-shadow:
    0 42px 82px rgba(0, 0, 0, 0.68),
    0 18px 30px rgba(0, 0, 0, 0.34),
    0 0 42px rgba(255, 214, 122, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.faction-card:hover {
  z-index: 4;
  filter: brightness(1.12) saturate(1.18);
  transform:
    translate(-50%, -50%)
    translate3d(var(--x, 0px), calc(var(--y, 0px) - 16px), 80px)
    scale(calc(var(--scale, 1) * 1.18))
    rotateZ(var(--tilt, 0deg));
}

.faction-card:hover .faction-card-inner {
  transform: rotateX(-8deg);
}

.faction-card-art {
  width: 100%;
  height: 100%;
  background-size: cover;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.faction-card-front {
  opacity: 1;
  transform: perspective(1600px) rotateY(0deg) rotateX(0deg) scale(1) translateZ(0);
}

.faction-card-back {
  opacity: 0;
  transform: perspective(1600px) rotateY(-128deg) rotateX(16deg) scale(0.78) translateZ(-24px);
  filter: brightness(1.08) saturate(1.1);
}

.faction-card:hover .faction-card-front {
  opacity: 0;
  transform: perspective(1600px) rotateY(118deg) rotateX(-14deg) scale(0.8) translateZ(-20px);
}

.faction-card.is-flipped .faction-card-front {
  opacity: 0;
  transform: perspective(1600px) rotateY(118deg) rotateX(-14deg) scale(0.8) translateZ(-20px);
}

.faction-card:hover .faction-card-back {
  opacity: 1;
  transform: perspective(1600px) rotateY(0deg) rotateX(0deg) scale(1.24) translateZ(34px);
}

.faction-card.is-flipped .faction-card-back {
  opacity: 1;
  transform: perspective(1600px) rotateY(0deg) rotateX(0deg) scale(1.24) translateZ(34px);
}

.faction-card:hover .faction-card-back .faction-card-art {
  transform: scale(1.08);
}

.faction-card.is-flipped .faction-card-back .faction-card-art {
  transform: scale(1.08);
}

.faction-card-art {
  transition: transform 0.45s ease;
}

@media (max-width: 900px) {
  :root {
    --header-height: 334px;
    --header-content-height: 82px;
    --header-content-offset-y: 4px;
    --scene-height: 1268px;
  }

  .site-header {
    padding: 0 16px;
    gap: 16px;
  }

  .site-nav {
    gap: 18px;
  }

  .site-nav a {
    font-size: 15px;
  }

  .panel-inner {
    width: calc(100vw - 48px);
  }

  .factions-layout {
    width: calc(100vw - 56px);
    height: min(68vh, 720px);
  }

  .factions-orbit-scene {
    min-height: 210px;
  }

  .download-assets {
    gap: 20px;
  }

}

@media (max-width: 768px) {
  :root {
    --header-height: 118px;
    --header-content-height: 33px;
    --header-content-offset-y: 6px;
    --scene-height: 100svh;
    --nav-bg-image: url("image/mobile/background/home_dh_mobile.png");
    --header-bg-size: 100% auto;
    --main-bg-image: url("image/mobile/background/home_bg_mobile.jpg");
    --download-bg-image: url("image/mobile/background/download_bg_mobile.jpg");
    --panel-bg-size: 100% auto;
    --footer-bg-height: 14px;
    --footer-image-width: 151px;
    --footer-image-height: 14px;
  }

  html,
  body {
    min-height: var(--scene-height);
  }

  body {
    min-height: var(--scene-height);
  }

  .site-header {
    flex-wrap: nowrap;
    height: var(--header-height);
    padding: 0 10px;
    gap: 8px;
    background-size: var(--header-bg-size);
    background-position: center top;
  }

  .site-nav {
    left: 50%;
    top: calc(var(--header-content-height) / 2);
    transform: translate(-50%, calc(-50% + var(--header-content-offset-y)));
    gap: 10px;
    padding-bottom: 0;
  }

  .site-nav a {
    font-size: 12px;
    white-space: nowrap;
  }

  .panel-shell {
    width: calc(100vw - 24px);
    min-height: calc(var(--scene-height) - 24px);
    margin: 0 auto;
    padding-top: 16px;
    padding-bottom: 28px;
  }

  .panel-inner {
    width: calc(100vw - 36px);
  }

  .factions-layout {
    width: calc(100vw - 32px);
    height: min(64dvh, 560px);
  }

  .factions-wall {
    gap: 34px;
    padding-top: 10px;
    overflow: visible;
  }

  .factions-orbit-scene {
    min-height: 196px;
  }

  .faction-skin-controls {
    gap: 14px;
    margin-top: 18px;
  }

  .faction-skin-button {
    min-width: 52px;
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
  }

  .faction-card {
    width: clamp(60px, 10.4vw, 86px);
  }

  .faction-card-inner,
  .faction-card-face,
  .faction-card-art {
    will-change: transform, opacity;
  }

  .faction-card-inner {
    transition: transform 0.34s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.24s ease, box-shadow 0.24s ease;
  }

  .faction-card-face {
    box-shadow:
      0 8px 18px rgba(0, 0, 0, 0.24),
      0 0 0 1px rgba(255, 255, 255, 0.04);
    transition:
      transform 0.56s cubic-bezier(0.18, 0.8, 0.18, 1),
      opacity 0.28s ease,
      box-shadow 0.24s ease,
      filter 0.24s ease;
  }

  .faction-card.is-flipped .faction-card-face {
    box-shadow:
      0 18px 34px rgba(0, 0, 0, 0.42),
      0 8px 16px rgba(0, 0, 0, 0.18),
      0 0 16px rgba(255, 214, 122, 0.14),
      0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  .gameplay-layout,
  .news-layout,
  .download-layout {
    gap: 12px;
  }

  .gameplay-copy {
    width: min(88vw, 520px);
    font-size: 13px;
    line-height: 1.45;
  }

  .news-copy {
    width: min(88vw, 520px);
    font-size: 18px;
    line-height: 1.2;
  }

  .download-assets {
    flex-direction: row;
    gap: 10px;
  }

  .site-footer {
    top: var(--scene-height);
    transform: translateY(calc(-100% - 2px));
  }

  .footer-inner {
    width: 100%;
  }
}

@media (min-width: 3000px) {
  :root {
    --header-height: 678px;
    --header-content-height: 132px;
    --header-content-offset-y: 2px;
    --scene-height: 1964px;
    --nav-bg-image: url("image/3840/background/home_dh_3840.png");
    --main-bg-image: url("image/3840/background/home_bg_3840.jpg");
    --download-bg-image: url("image/3840/background/download_bg_3840.jpg");
    --footer-bg-height: 110px;
    --footer-image-width: 1207px;
    --footer-image-height: 110px;
  }
}

@media (min-width: 1921px) and (max-width: 2999px) {
  :root {
    --scene-height: 1268px;
    --header-height: 334px;
    --header-content-height: 96px;
    --header-content-offset-y: 2px;
    --nav-bg-image: url("image/2560/background/home_dh_2560.png");
    --main-bg-image: url("image/2560/background/home_bg_2560.jpg");
    --download-bg-image: url("image/2560/background/download_bg_2560.jpg");
    --footer-bg-height: 67px;
    --footer-image-width: 747px;
    --footer-image-height: 67px;
  }
}

@media (min-width: 1281px) and (max-width: 1920px) {
  :root {
	--scene-height: 1070px;
    --header-height: 294px;
    --header-content-height: 90px;
    --header-content-offset-y: 2px;   
    --nav-bg-image: url("image/1920/background/home_dh_1920.png");
    --main-bg-image: url("image/1920/background/home_bg_1920.jpg");
    --download-bg-image: url("image/1920/background/download_bg_1920.jpg");
    --footer-bg-height: 52px;
    --footer-image-width: 562px;
    --footer-image-height: 52px;
  }
}

@media (min-width: 769px) and (max-width: 1280px) {
  :root {
    --header-height: 294px;
    --header-content-height: 84px;
    --header-content-offset-y: 2px;
    --scene-height: 1070px;
    --nav-bg-image: url("image/1280/background/home_dh_1280.png");
    --main-bg-image: url("image/1280/background/home_bg_1280.jpg");
    --download-bg-image: url("image/1280/background/download_bg_1280.jpg");
    --footer-bg-height: 52px;
    --footer-image-width: 562px;
    --footer-image-height: 52px;
  }
}
