:root {
  --scale: 1;
  --scale: clamp(1, calc(100vw / 1920px), 1.85);
  --hero-ratio: 985 / 1920;
  --news-ratio: 930 / 1920;
  --gallery-ratio: 1117 / 1920;
  --features-ratio: 1164 / 1920;
  --bg: #f7eedf;
  --bg-soft: #fbf6ec;
  --surface: rgba(255, 252, 245, 0.86);
  --surface-strong: rgba(255, 250, 242, 0.95);
  --line: rgba(181, 132, 71, 0.3);
  --gold: #d5ab6b;
  --gold-deep: #a96f35;
  --gold-soft: #f1d7a1;
  --brown: #7d542e;
  --brown-deep: #4e2f18;
  --text: #6c4929;
  --shadow: 0 calc(20px * var(--scale)) calc(60px * var(--scale)) rgba(133, 92, 46, 0.16);
  --radius-xl: calc(36px * var(--scale));
  --radius-lg: calc(24px * var(--scale));
  --radius-md: calc(18px * var(--scale));
  --container: calc(100% - 48px);
  --container: min(calc(1180px * var(--scale)), calc(100% - calc(48px * var(--scale))));
}

@font-face {
  font-family: "GalleryTitleFont";
  src: url("./font/GenRyuMin JP H.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  color: var(--text);
  background: #f7eedf;
  overflow-x: hidden;
  overflow-y: auto;
}

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

button {
  font: inherit;
}

.page-viewport {
  width: 100%;
  position: relative;
  overflow: visible;
}

.page-shell {
  position: relative;
  overflow: visible;
  width: 100%;
  margin: 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.topbar {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(24px * var(--scale));
  padding: 0 calc(24px * var(--scale));
  min-height: calc(76px * var(--scale));
  background: linear-gradient(180deg, rgba(130, 84, 42, 0.96), rgba(113, 69, 31, 0.92));
  box-shadow: 0 10px 30px rgba(68, 37, 10, 0.18);
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: calc(12px * var(--scale));
  min-width: 0;
}

.brand-mini__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  display: grid;
  place-items: center;
  width: calc(44px * var(--scale));
  height: calc(44px * var(--scale));
  overflow: hidden;
  border: 1px solid rgba(255, 234, 195, 0.4);
  border-radius: calc(10px * var(--scale));
  background: rgba(255, 245, 218, 0.08);
}

.brand-mini__icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mini__text {
  display: flex;
  flex-direction: column;
  color: #fff3d2;
  line-height: 1.2;
}

.brand-mini__text span {
  font-size: calc(15px * var(--scale));
}

.brand-mini__text small {
  opacity: 0.75;
  font-size: calc(11px * var(--scale));
}

.topbar-mobile-actions {
  display: none;
}

.hero__title-picture {
  display: block;
  line-height: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: calc(8px * var(--scale));
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: stretch;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: calc(208px * var(--scale));
  height: 100%;
  padding: calc(15px * var(--scale)) calc(20px * var(--scale));
  color: #fff7e8;
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
  font-size: 24px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
  z-index: 0;
}

.main-nav a::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: calc(208px * var(--scale));
  height: calc(80px * var(--scale));
  transform: translate(-50%, -50%);
  background: url("./images/nav-hover-bg.png") center / 100% 100% no-repeat;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
  pointer-events: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 1px;
  height: calc(18px * var(--scale));
  transform: translateY(-50%);
  background: rgba(255, 236, 199, 0.35);
}

.main-nav a:last-child::after {
  display: none;
}

.main-nav a.is-active,
.main-nav a:hover {
  color: var(--brown-deep);
}

.main-nav a.is-active::before,
.main-nav a:hover::before {
  opacity: 1;
}

.section-pad {
  padding: calc(88px * var(--scale)) 0;
}

.section-arc {
  position: relative;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 985px;
  min-height: max(calc(100vw * 985 / 1920), 985px);
  padding: 0;
  background-image: url("./images/hero-bg.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 1920px auto;
  background-size: max(100vw, 1920px) auto;
}

.hero::before {
  content: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: calc(90px * var(--scale));
;
}

.hero__logo {
  align-self: flex-start;
  margin-left: 2%;
  margin-bottom: calc(120px * var(--scale));
  line-height: 0;
}

.hero__logo-image {
  display: block;
  width: calc(293px * var(--scale));
  height: auto;
}

.hero__title {
  margin: calc(82px * var(--scale)) 0 0;
  line-height: 0;
}

.hero__title-image {
  display: block;
  width: 1369px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 calc(8px * var(--scale)) calc(22px * var(--scale)) rgba(117, 74, 34, 0.22));
}

.hero__actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-end;
  width: auto;
  width: max-content;
  gap: calc(16px * var(--scale));
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
}

.hero-btn,
.hero-bonus {
  display: block;
  line-height: 0;
  transform-origin: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.hero-btn:hover {
  transform: translateY(calc(-4px * var(--scale))) scale(1.06);
  filter: drop-shadow(0 calc(10px * var(--scale)) calc(24px * var(--scale)) rgba(136, 89, 36, 0.18));
}

.hero-btn img,
.hero-bonus img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-btn--store {
  width: calc(270px * var(--scale));
}

.hero-recharge-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
}

.hero-btn--recharge {
  width: calc(331px * var(--scale));
}

.hero-bonus {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px * var(--scale));
  transform: translateX(-50%);
  width: calc(254px * var(--scale));
  animation: hero-bonus-float 2.4s ease-in-out infinite;
  cursor: default;
  pointer-events: none;
}

.hero-recharge-wrap:hover .hero-bonus {
  animation-play-state: paused;
  filter: drop-shadow(0 calc(10px * var(--scale)) calc(24px * var(--scale)) rgba(136, 89, 36, 0.18));
}

@keyframes hero-bonus-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(calc(-10px * var(--scale)));
  }
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(22px * var(--scale));
  margin-bottom: 0;
}

.section-heading h2 {
  margin: 0;
  color: var(--brown);
  font-size: calc(44px * var(--scale));
}

.section-heading__image {
  display: block;
  width: calc(517px * var(--scale));
  height: auto;
}

.panel {
  position: relative;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.news-panel {
  position: relative;
  display: block;
  width: 100%;
  min-height: calc(694px * var(--scale));
  padding: 0;
  background: url("./images/news-panel-bg.png") center top / 100% auto no-repeat;
}

.news {
  width: 100%;
  padding-top: calc(88px * var(--scale));
  padding-bottom: 0;
  min-height: 930px;
  min-height: max(calc(100vw * 930 / 1920), 930px);
  background-image:
    linear-gradient(180deg, rgba(250, 244, 233, 0.06), rgba(247, 238, 223, 0.1)),
    url("./images/news-bg.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center top;
  background-size: 1920px auto, 1920px auto;
  background-size: max(100vw, 1920px) auto, max(100vw, 1920px) auto;
}

.news .container {
  width: calc(1423px * var(--scale));
  max-width: calc(1423px * var(--scale));
}

.news-panel__media,
.news-panel__content {
  min-width: 0;
}

.news-panel__media {
  position: absolute;
  left: calc(136px * var(--scale));
  top: calc(139px * var(--scale));
  width: calc(659px * var(--scale));
}

.news-panel__content {
  position: absolute;
  top: calc(139px * var(--scale));
  left: calc(835px * var(--scale));
  width: calc(460px * var(--scale));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
  font-size: calc(20px * var(--scale));
}

.placeholder-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: calc(659px * var(--scale));
  min-height: 0;
  height: calc(369px * var(--scale));
  border: 2px solid rgba(177, 129, 63, 0.6);
  border-radius: calc(20px * var(--scale));
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 236, 192, 0.55), transparent 26%),
    linear-gradient(135deg, #51351e, #ae7b44 26%, #fff1d0 52%, #7d4e29 100%);
  color: rgba(255, 251, 244, 0.88);
  font-size: calc(24px * var(--scale));
  letter-spacing: 0.08em;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
}

.placeholder-card::after {
  content: "";
  position: absolute;
  inset: calc(14px * var(--scale));
  border: 1px solid rgba(255, 240, 203, 0.38);
  border-radius: calc(12px * var(--scale));
}

.news-panel__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}

.news-panel__image.is-switching {
  opacity: 0.35;
}

.thumb-list {
  display: flex;
  justify-content: center;
  gap: calc(24px * var(--scale));
  margin-top: calc(18px * var(--scale));
}

.thumb-list__item {
  width: calc(16px * var(--scale));
  height: calc(21px * var(--scale));
  border: 0;
  border-radius: 0;
  background: url("./images/news-dot-active.png") center / 100% 100% no-repeat;
  color: transparent;
  cursor: pointer;
  transform: none;
  box-shadow: none;
}

.thumb-list__item.is-active {
  background: url("./images/news-dot-default.png") center / 100% 100% no-repeat;
  box-shadow: none;
}

.tabs {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: calc(473px * var(--scale));
  height: calc(50px * var(--scale));
  padding: calc(4px * var(--scale));
  border: 0;
  border-radius: 0;
  background: url("./images/news-tabs-bg.png") center / 100% 100% no-repeat;
}

.tab-btn {
  flex: 1 1 33.333%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(121, 76, 34, 0.72);
  cursor: pointer;
  font-size: calc(20px * var(--scale));
}

.tab-btn.is-active {
  background: url("./images/news-tab-active-bg.png") center / 100% 100% no-repeat;
  color: var(--brown-deep);
  font-weight: 700;
}

.news-list {
  display: none;
  width: 100%;
  margin-top: calc(18px * var(--scale));
}

.news-list.is-active {
  display: block;
}

.news-list .news-item:nth-child(n + 7) {
  display: none;
}

.news-item {
  display: grid;
  grid-template-columns: calc(76px * var(--scale)) 1fr calc(51px * var(--scale));
  gap: calc(14px * var(--scale));
  align-items: center;
  height: calc(54px * var(--scale));
  padding: 0;
  border-bottom: 1px dashed rgba(198, 156, 93, 0.35);
}

.news-item span {
  color: rgba(146, 101, 54, 0.8);
  font-size: calc(20px * var(--scale));
}

.news-item strong {
  font-size: calc(20px * var(--scale));
  font-weight: 500;
  line-height: calc(54px * var(--scale));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-item em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(51px * var(--scale));
  height: calc(27px * var(--scale));
  padding: 0;
  border-radius: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: transparent;
  font-style: normal;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  overflow: hidden;
}

.news-item em.news-tag--news {
  background-image: url("./images/news-tag-notice.png");
}

.news-item em.news-tag--notice {
  background-image: url("./images/news-tag-news.png");
}

.news-item em.news-tag--guide {
  background-image: url("./images/news-tag-guide.png");
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: calc(10px * var(--scale));
  width: 100%;
  margin-top: calc(18px * var(--scale));
  color: rgba(126, 87, 45, 0.78);
  font-size: calc(20px * var(--scale));
}

.pager a,
.pager span {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.pager a:hover {
  color: var(--gold-deep);
  background: rgba(169, 111, 53, 0.08);
}

.pager .is-current {
  color: var(--gold-deep);
  font-weight: 700;
}

.pager .is-disabled {
  opacity: 0.35;
  cursor: default;
}

.pager .is-disabled:hover {
  color: rgba(126, 87, 45, 0.78);
  background: transparent;
}

.pager-ellipsis {
  cursor: default;
}

.gallery {
  position: relative;
  width: 100%;
  padding-top: 0;
  min-height: 1117px;
  min-height: max(calc(100vw * 1117 / 1920), 1117px);
  background-image:
    linear-gradient(180deg, rgba(255, 251, 244, 0.04), rgba(255, 248, 239, 0.08)),
    url("./images/gallery-bg.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center top;
  background-size: 1920px auto, 1920px auto;
  background-size: max(100vw, 1920px) auto, max(100vw, 1920px) auto;
}

.gallery .container {
  min-width: calc(1380px * var(--scale));
}

.switcher {
  display: flex;
  justify-content: center;
  gap: calc(10px * var(--scale));
  margin-top: calc(60px * var(--scale));
  margin-bottom: calc(48px * var(--scale));
}

.switcher--wide {
  width: calc(802px * var(--scale));
  height: calc(79px * var(--scale));
  margin-left: auto;
  margin-right: auto;
  padding: calc(10px * var(--scale)) calc(18px * var(--scale));
  background: url("./images/gallery-camp-tabs-bg.png") center / 100% 100% no-repeat;
}

.switcher--wide button {
  min-width: calc(217px * var(--scale));
  height: calc(59px * var(--scale));
}

.switcher button {
  padding: 0 calc(20px * var(--scale));
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(120, 79, 38, 0.75);
  cursor: pointer;
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
  font-size: calc(22px * var(--scale));
  white-space: nowrap;
}

.switcher button.is-active {
  background: url("./images/gallery-camp-tab-active.png") center / 100% 100% no-repeat;
  color: var(--brown-deep);
  font-weight: 700;
}

.gallery-stage {
  display: grid;
  grid-template-columns: calc(360px * var(--scale)) 1fr calc(90px * var(--scale));
  gap: calc(20px * var(--scale));
  align-items: start;
}

.gallery-visual,
.gallery-avatars {
  align-self: center;
}

.gallery-info {
  width: calc(330px * var(--scale));
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
}

.gallery-nameplate {
  position: relative;
  width: calc(286px * var(--scale));
  height: calc(142px * var(--scale));
  margin-left: 0;
  background: url("./images/gallery-nameplate-bg.png") left bottom / 100% auto no-repeat;
}

.gallery-nameplate[data-camp="wei"] {
  background-image: url("./images/gallery-nameplate-bg.png");
}

.gallery-nameplate[data-camp="shu"] {
  background-image: url("./images/gallery-nameplate-shu-bg.png");
}

.gallery-nameplate[data-camp="wu"] {
  background-image: url("./images/gallery-nameplate-wu-bg.png");
}

.gallery-info h3 {
  position: absolute;
  right: calc(4px * var(--scale));
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(229px * var(--scale));
  margin: 0;
  color: #8a5732;
  font-family: "GalleryTitleFont", SimSun, "Songti SC", "STSong", serif;
  font-size: calc(54px * var(--scale));
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.gallery-nameplate__name {
  display: block;
  width: auto;
  max-width: calc(229px * var(--scale));
  height: calc(77px * var(--scale));
  object-fit: contain;
}

.badge {
  display: none;
}

.gallery-info__role {
  width: calc(170px * var(--scale));
  margin: calc(-39px * var(--scale)) 0 calc(18px * var(--scale)) calc(92px * var(--scale));
  color: #9b6333;
  font-family: "GalleryTitleFont", SimSun, "Songti SC", "STSong", serif;
  font-size: calc(23px * var(--scale));
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.stars {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 calc(10px * var(--scale)) calc(54px * var(--scale));
  line-height: 1;
}

.stars img {
  display: block;
  width: calc(36px * var(--scale));
  height: calc(39px * var(--scale));
}

.info-card {
  margin-top: calc(10px * var(--scale));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.info-card h4 {
  display: flex;
  align-items: center;
  width: calc(130px * var(--scale));
  height: calc(37px * var(--scale));
  margin: 0 0 calc(10px * var(--scale)) calc(15px * var(--scale));
  padding-left: calc(36px * var(--scale));
  background: url("./images/gallery-info-title-bg.png") center / 100% 100% no-repeat;
  color: #fff8e9;
  font-family: "GalleryTitleFont", SimSun, "Songti SC", "STSong", serif;
  font-size: calc(20px * var(--scale));
  font-weight: 700;
}

.info-card p {
  margin: calc(18px * var(--scale)) 0 0 calc(8px * var(--scale));
  color: #9c6044;
  font-family: "GalleryTitleFont", SimSun, "Songti SC", "STSong", serif;
  line-height: 1.35;
  font-size: calc(20px * var(--scale));
  font-weight: 700;
}

.skills {
  display: flex;
  gap: calc(24px * var(--scale));
  flex-wrap: wrap;
  margin-top: calc(18px * var(--scale));
  margin-left: calc(12px * var(--scale));
  overflow: visible;
}

.skill-name {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: calc(82px * var(--scale));
  min-width: 0;
  border-radius: 0;
  background: transparent;
  color: #9c6044;
  font-size: calc(20px * var(--scale));
  font-weight: 700;
  cursor: pointer;
}

.skill-name__icon {
  display: block;
  width: calc(62px * var(--scale));
  height: calc(62px * var(--scale));
  object-fit: contain;
}

.skill-name__text {
  display: block;
  margin-top: calc(6px * var(--scale));
  font-family: "GalleryTitleFont", SimSun, "Songti SC", "STSong", serif;
  font-size: calc(20px * var(--scale));
  line-height: 1.15;
  text-align: center;
}

.skill-name::after {
  content: attr(data-skill-desc);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px * var(--scale));
  z-index: 8;
  width: calc(280px * var(--scale));
  padding: calc(12px * var(--scale)) calc(14px * var(--scale));
  border: 1px solid rgba(177, 129, 63, 0.45);
  border-radius: calc(8px * var(--scale));
  background: rgba(255, 248, 236, 0.96);
  color: #8f5538;
  font-family: "GalleryTitleFont", SimSun, "Songti SC", "STSong", serif;
  font-size: calc(18px * var(--scale));
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  box-shadow: 0 calc(8px * var(--scale)) calc(22px * var(--scale)) rgba(100, 68, 34, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(8px * var(--scale)));
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.skill-name:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.gallery-visual {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: calc(70px * var(--scale));
  margin-left: calc(-155px * var(--scale));
}

.gallery-arrow {
  margin-top: calc(125px * var(--scale));
  width: calc(94px * var(--scale));
  height: calc(100px * var(--scale));
  border: 0;
  border-radius: 0;
  background: transparent center / 100% 100% no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  box-shadow: none;
}

.gallery-arrow--left {
  background-image: url("./images/gallery-arrow-left.png");
}

.gallery-arrow--right {
  background-image: url("./images/gallery-arrow-right.png");
}

.character-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 620px;
  width: min(100%, 620px);
  aspect-ratio: 1 / 1;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.character-frame--trigger {
  padding: 0;
  border: 0;
  cursor: pointer;
  appearance: none;
}

.character-frame__halo {
  display: none;
}

.placeholder-character {
  display: grid;
  place-items: center;
  gap: 10px;
  width: 72%;
  height: 72%;
  border: 2px dashed rgba(184, 131, 60, 0.45);
  border-radius: 34% 66% 42% 58% / 39% 42% 58% 61%;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 244, 219, 0.7), transparent 28%),
    linear-gradient(180deg, rgba(88, 63, 41, 0.2), rgba(255, 247, 229, 0.75));
  color: var(--gold-deep);
  text-align: center;
  font-size: 28px;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
}

.character-artwork {
  display: block;
  width: calc(701px * var(--scale));
  max-width: 118%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 calc(18px * var(--scale)) calc(22px * var(--scale)) rgba(116, 77, 35, 0.2));
}

.placeholder-character.is-switching {
  opacity: 0.72;
  transform: scale(0.96);
}

.placeholder-character.has-artwork {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.placeholder-character__name {
  display: block;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.placeholder-character__camp {
  display: block;
  font-size: 14px;
  letter-spacing: 0.16em;
  opacity: 0.86;
}

.gallery-avatars {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(14px * var(--scale));
}

.gallery-avatars::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(-34px * var(--scale));
  z-index: 0;
  width: calc(16px * var(--scale));
  height: calc(676px * var(--scale));
  transform: translateX(-50%);
  background: url("./images/gallery-avatar-line.png") center / 100% 100% no-repeat;
  pointer-events: none;
}

.avatar {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: calc(103px * var(--scale));
  height: calc(103px * var(--scale));
  border: 0;
  border-radius: 0;
  background: url("./images/gallery-avatar-bg.png") center / 100% 100% no-repeat;
  color: rgba(122, 82, 39, 0.78);
  font-family: "GalleryTitleFont", SimSun, "Songti SC", "STSong", serif;
  font-size: calc(16px * var(--scale));
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.avatar:hover,
.gallery-arrow:hover {
  transform: translateY(-3px);
}

.avatar.is-active {
  width: calc(140px * var(--scale));
  height: calc(144px * var(--scale));
  background-image: url("./images/gallery-avatar-active-bg.png");
  color: white;
  box-shadow: none;
}

.avatar__image {
  display: block;
  width: calc(79px * var(--scale));
  height: calc(78px * var(--scale));
  object-fit: cover;
  border-radius: 50%;
}

.avatar__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(78px * var(--scale));
  height: calc(78px * var(--scale));
  border-radius: 50%;
  color: #8a5732;
  background: rgba(255, 246, 226, 0.72);
  font-size: calc(15px * var(--scale));
  line-height: 1.15;
  text-align: center;
}

.gallery-modal {
  display: none;
}

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

.features {
  width: 100%;
  min-height: 1164px;
  min-height: max(calc(100vw * 1164 / 1920), 1164px);
  padding-bottom: calc(110px * var(--scale));
  background-image:
    linear-gradient(180deg, rgba(250, 244, 233, 0.04), rgba(247, 238, 223, 0.08)),
    url("./images/features-bg.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center top;
  background-size: 1920px auto, 1920px auto;
  background-size: max(100vw, 1920px) auto, max(100vw, 1920px) auto;
}

.feature-showcase {
  display: grid;
  grid-template-columns:
    calc(67px * var(--scale))
    calc(300px * var(--scale))
    calc(421px * var(--scale))
    calc(300px * var(--scale))
    calc(67px * var(--scale));
  align-items: center;
  justify-content: center;
  gap: calc(18px * var(--scale));
}

.feature-card {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  height: calc(862px * var(--scale));
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.feature-card.is-switching {
  opacity: 0.8;
}

.feature-card__content {
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
}

.feature-card__content--main {
  padding: 0;
}

.feature-card--main {
  width: calc(421px * var(--scale));
  height: calc(862px * var(--scale));
  transform: translateY(calc(16px * var(--scale)));
}

.feature-card--side {
  opacity: 0.58;
  transform: scale(0.9);
}

.feature-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.features .gallery-arrow {
  width: calc(67px * var(--scale));
  height: calc(87px * var(--scale));
  margin-top: 0;
}

.features .gallery-arrow--left {
  background-image: url("./images/feature-arrow-prev.png");
}

.features .gallery-arrow--right {
  background-image: url("./images/feature-arrow-next.png");
}

.feature-dots {
  display: none;
  justify-content: center;
  gap: calc(12px * var(--scale));
  margin-top: calc(28px * var(--scale));
}

.feature-dot {
  width: calc(14px * var(--scale));
  height: calc(14px * var(--scale));
  border: 0;
  border-radius: 999px;
  background: rgba(206, 164, 99, 0.32);
  color: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.feature-dot.is-active {
  background: linear-gradient(180deg, #fff0c5, #cb8f35);
  box-shadow: 0 0 0 4px rgba(246, 228, 192, 0.45);
}

.footer {
  padding: calc(32px * var(--scale)) 0 calc(34px * var(--scale));
  background: #000;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.footer__inner {
  max-width: calc(1050px * var(--scale));
}

.footer__company-cn {
  margin: 0;
  color: white;
  font-family: "GalleryTitleFont", SimSun, "Songti SC", "STSong", serif;
  font-size: calc(40px * var(--scale));
  font-weight: 900;
  line-height: 1;
  letter-spacing: calc(8px * var(--scale));
  text-shadow: 0 calc(2px * var(--scale)) 0 rgba(255, 255, 255, 0.35);
}

.footer__company-en {
  margin: calc(5px * var(--scale)) 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Trebuchet MS", "Microsoft JhengHei", sans-serif;
  font-size: calc(12px * var(--scale));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: calc(1px * var(--scale));
}

.footer__copyright {
  margin: calc(26px * var(--scale)) 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-family: "Trebuchet MS", "Microsoft JhengHei", sans-serif;
  font-size: calc(12px * var(--scale));
  font-weight: 700;
  line-height: 1.2;
}

.footer__notice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: calc(24px * var(--scale));
  width: auto;
  width: fit-content;
  max-width: 100%;
  margin: calc(22px * var(--scale)) auto 0;
  text-align: left;
}

.footer__rating {
  display: block;
  width: calc(43px * var(--scale));
  height: calc(57px * var(--scale));
  flex: 0 0 auto;
}

.footer__notice-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-family: "Microsoft JhengHei", "SimHei", sans-serif;
  font-size: calc(12px * var(--scale));
  font-weight: 700;
  line-height: 1.55;
}

.detail-shell {
  min-height: 100vh;
  background-color: #f7eedf;
}

.topbar--detail .topbar-mobile-actions {
  display: none;
}

.news-detail-page {
  min-height: 100vh;
  padding: calc(118px * var(--scale)) 0 calc(46px * var(--scale));
  background-image:
    linear-gradient(180deg, rgba(251, 246, 236, 0.2), rgba(251, 246, 236, 0.2)),
    url("./images/news-detail-bg.jpg");
  background-repeat: repeat-y, repeat-y;
  background-position: center top, center top;
  background-size: 1920px auto, 1920px auto;
  background-size: max(100vw, 1920px) auto, max(100vw, 1920px) auto;
}

.news-detail-back {
  display: none;
}

.news-detail-card {
  position: relative;
  width: calc(854px * var(--scale));
  min-height: calc(914px * var(--scale));
  margin: 0 auto;
  padding: calc(24px * var(--scale));
  background:
    linear-gradient(135deg, transparent calc(22px * var(--scale)), #b8895f 0) top left,
    linear-gradient(225deg, transparent calc(22px * var(--scale)), #b8895f 0) top right,
    linear-gradient(45deg, transparent calc(22px * var(--scale)), #b8895f 0) bottom left,
    linear-gradient(315deg, transparent calc(22px * var(--scale)), #b8895f 0) bottom right;
  background-color: #b8895f;
  background-repeat: no-repeat;
  background-size: 51% 51%;
  box-shadow:
    inset 0 0 0 calc(2px * var(--scale)) rgba(255, 236, 200, 0.38),
    inset 0 0 0 calc(12px * var(--scale)) rgba(128, 78, 38, 0.16),
    0 calc(24px * var(--scale)) calc(45px * var(--scale)) rgba(98, 58, 23, 0.12);
}

.news-detail-card::before {
  content: "";
  position: absolute;
  inset: calc(13px * var(--scale));
  border: calc(1px * var(--scale)) dashed rgba(255, 239, 210, 0.5);
  pointer-events: none;
}

.news-detail-card__inner {
  position: relative;
  min-height: calc(866px * var(--scale));
  padding: calc(52px * var(--scale)) calc(58px * var(--scale));
  background:
    linear-gradient(135deg, transparent calc(26px * var(--scale)), #fff9f0 0) top left,
    linear-gradient(225deg, transparent calc(26px * var(--scale)), #fff9f0 0) top right,
    linear-gradient(45deg, transparent calc(26px * var(--scale)), #fff9f0 0) bottom left,
    linear-gradient(315deg, transparent calc(26px * var(--scale)), #fff9f0 0) bottom right;
  background-color: #fff9f0;
  background-repeat: no-repeat;
  background-size: 51% 51%;
  box-shadow:
    inset 0 0 0 calc(2px * var(--scale)) rgba(191, 153, 102, 0.45),
    inset 0 0 calc(42px * var(--scale)) rgba(159, 101, 50, 0.12);
}

.news-detail__title {
  margin: 0;
  padding-bottom: calc(20px * var(--scale));
  border-bottom: calc(1px * var(--scale)) solid #1d1d1d;
  color: #030303;
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
  font-size: calc(32px * var(--scale));
  font-weight: 900;
  line-height: 1.28;
}

.news-detail__date {
  display: block;
  margin-top: calc(10px * var(--scale));
  color: #050505;
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
  font-size: calc(16px * var(--scale));
  font-weight: 900;
  line-height: 1;
}

.news-detail__image {
  width: calc(659px * var(--scale));
  height: calc(369px * var(--scale));
  margin: calc(25px * var(--scale)) auto 0;
  background: #a9a9a9;
}

.news-detail__content {
  margin-top: calc(34px * var(--scale));
  color: #050505;
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
  font-size: calc(16px * var(--scale));
  font-weight: 900;
  line-height: 1.55;
}

.news-detail__content p {
  margin: 0 0 1em;
}

.news-detail__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0;
  display: block;
}

.news-detail__content ul,
.news-detail__content ol {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

.news-detail__content li {
  margin-bottom: 0.3em;
}

.news-detail__content a {
  color: #a96f35;
  text-decoration: underline;
}

.news-detail__content h2,
.news-detail__content h3,
.news-detail__content h4 {
  margin: 1em 0 0.5em;
  color: #4e2f18;
}

html.compat-desktop .container {
  width: 1180px;
  max-width: calc(100% - 48px);
}

html.compat-desktop .topbar {
  min-height: calc(100vw * 76 / 1920);
  gap: calc(100vw * 24 / 1920);
  padding: 0 calc(100vw * 24 / 1920);
}

html.compat-desktop .brand-mini__avatar {
  width: calc(100vw * 44 / 1920);
  height: calc(100vw * 44 / 1920);
  flex: 0 0 calc(100vw * 44 / 1920);
  border-radius: calc(100vw * 10 / 1920);
}

html.compat-desktop .brand-mini__text span {
  font-size: calc(100vw * 15 / 1920);
}

html.compat-desktop .brand-mini__text {
  margin-left: calc(100vw * 12 / 1920);
}

html.compat-desktop .main-nav {
  justify-content: flex-end;
  align-self: stretch;
  gap: calc(100vw * 8 / 1920);
}

html.compat-desktop .main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: calc(100vw * 208 / 1920);
  padding: calc(100vw * 15 / 1920) calc(100vw * 20 / 1920);
  font-size: calc(100vw * 24 / 1920);
}

html.compat-desktop .main-nav a::before {
  width: calc(100vw * 208 / 1920);
  height: calc(100vw * 80 / 1920);
}

html.compat-desktop .hero {
  min-height: calc(100vw * 985 / 1920);
  background-size: 100vw auto;
}

html.compat-desktop .hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: calc(100vw * 90 / 1920);
}

html.compat-desktop .hero__logo {
  align-self: flex-start;
  margin-left: 2%;
  margin-bottom: calc(100vw * 120 / 1920);
  line-height: 0;
}

html.compat-desktop .hero__logo-image {
  width: calc(100vw * 293 / 1920);
}

html.compat-desktop .hero__title {
  margin: calc(100vw * 82 / 1920) 0 0;
  line-height: 0;
}

html.compat-desktop .hero__title-image {
  width: 100%;
  max-width: calc(100vw * 1369 / 1920);
}

html.compat-desktop .hero__actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-end;
  width: auto;
  gap: calc(100vw * 16 / 1920);
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
}

html.compat-desktop .hero-btn--store {
  width: calc(100vw * 270 / 1920);
}

html.compat-desktop .hero-recharge-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
}

html.compat-desktop .hero-btn--recharge {
  width: calc(100vw * 331 / 1920);
}

html.compat-desktop .hero-bonus {
  left: 50%;
  bottom: calc(100% + 8px);
  width: calc(100vw * 254 / 1920);
  transform: translateX(-50%);
  animation: none;
  z-index: 3;
  pointer-events: none;
}

html.compat-desktop .hero-recharge-wrap:hover .hero-bonus {
  transform: translateX(-50%);
  filter: none;
}


html.compat-desktop .section-heading {
  gap: calc(100vw * 22 / 1920);
}

html.compat-desktop .section-heading h2 {
  font-size: calc(100vw * 44 / 1920);
}

html.compat-desktop .section-heading__image {
  width: calc(100vw * 517 / 1920);
}

html.compat-desktop .news {
  min-height: calc(100vw * 930 / 1920);
  padding-top: calc(100vw * 88 / 1920);
  background-size: 100vw auto, 100vw auto;
}

html.compat-desktop .news .container {
  width: calc(100vw * 1423 / 1920);
  max-width: calc(100% - 48px);
}

html.compat-desktop .news-panel {
  min-height: calc(100vw * 694 / 1920);
  background-size: 100% auto;
}

html.compat-desktop .news-panel__media {
  left: calc(100vw * 136 / 1920);
  top: calc(100vw * 139 / 1920);
  width: calc(100vw * 659 / 1920);
}

html.compat-desktop .news-panel__content {
  top: calc(100vw * 139 / 1920);
  left: calc(100vw * 835 / 1920);
  width: calc(100vw * 460 / 1920);
  font-size: calc(100vw * 20 / 1920);
}

html.compat-desktop .placeholder-card {
  width: calc(100vw * 659 / 1920);
  height: calc(100vw * 369 / 1920);
}

html.compat-desktop .thumb-list {
  gap: calc(100vw * 24 / 1920);
  margin-top: calc(100vw * 18 / 1920);
}

html.compat-desktop .thumb-list__item {
  width: calc(100vw * 16 / 1920);
  height: calc(100vw * 21 / 1920);
}

html.compat-desktop .tabs {
  width: calc(100vw * 473 / 1920);
  height: calc(100vw * 50 / 1920);
  padding: calc(100vw * 4 / 1920);
}

html.compat-desktop .tab-btn {
  font-size: calc(100vw * 20 / 1920);
}

html.compat-desktop .news-list {
  margin-top: calc(100vw * 18 / 1920);
}

html.compat-desktop .news-item {
  grid-template-columns: calc(100vw * 76 / 1920) 1fr calc(100vw * 51 / 1920);
  gap: calc(100vw * 14 / 1920);
  height: calc(100vw * 54 / 1920);
}

html.compat-desktop .news-item span,
html.compat-desktop .news-item strong {
  font-size: calc(100vw * 20 / 1920);
}

html.compat-desktop .news-item strong {
  line-height: calc(100vw * 54 / 1920);
}

html.compat-desktop .news-item em {
  width: calc(100vw * 51 / 1920);
  height: calc(100vw * 27 / 1920);
}

html.compat-desktop .pager {
  gap: calc(100vw * 10 / 1920);
  margin-top: calc(100vw * 18 / 1920);
  font-size: calc(100vw * 20 / 1920);
}

html.compat-desktop .gallery {
  min-height: calc(100vw * 1117 / 1920);
  background-size: 100vw auto, 100vw auto;
}

html.compat-desktop .gallery .container {
  width: calc(100vw * 1380 / 1920);
  max-width: calc(100% - 48px);
  min-width: 0;
}

html.compat-desktop .switcher {
  gap: calc(100vw * 10 / 1920);
  margin-top: calc(100vw * 60 / 1920);
  margin-bottom: calc(100vw * 48 / 1920);
}

html.compat-desktop .switcher--wide {
  width: calc(100vw * 802 / 1920);
  height: calc(100vw * 79 / 1920);
  padding: calc(100vw * 10 / 1920) calc(100vw * 18 / 1920);
}

html.compat-desktop .switcher--wide button {
  min-width: calc(100vw * 217 / 1920);
  height: calc(100vw * 59 / 1920);
}

html.compat-desktop .switcher button {
  padding: 0 calc(100vw * 20 / 1920);
  font-size: calc(100vw * 22 / 1920);
}

html.compat-desktop .gallery-stage {
  grid-template-columns: calc(100vw * 360 / 1920) 1fr calc(100vw * 90 / 1920);
  gap: calc(100vw * 20 / 1920);
}

html.compat-desktop .gallery-info {
  width: calc(100vw * 330 / 1920);
}

html.compat-desktop .gallery-nameplate {
  width: calc(100vw * 286 / 1920);
  height: calc(100vw * 142 / 1920);
}

html.compat-desktop .gallery-info h3 {
  right: calc(100vw * 4 / 1920);
  width: calc(100vw * 229 / 1920);
  font-size: calc(100vw * 54 / 1920);
}

html.compat-desktop .gallery-nameplate__name {
  max-width: calc(100vw * 229 / 1920);
  height: calc(100vw * 77 / 1920);
}

html.compat-desktop .gallery-info__role {
  width: calc(100vw * 170 / 1920);
  margin: calc(100vw * -39 / 1920) 0 calc(100vw * 18 / 1920) calc(100vw * 92 / 1920);
  font-size: calc(100vw * 23 / 1920);
}

html.compat-desktop .gallery-info .stars {
  margin: 0 0 calc(100vw * 10 / 1920) calc(100vw * 54 / 1920);
}

html.compat-desktop .gallery-info .stars img {
  width: calc(100vw * 36 / 1920);
  height: calc(100vw * 39 / 1920);
}

html.compat-desktop .gallery-info .info-card {
  margin-top: calc(100vw * 10 / 1920);
}

html.compat-desktop .gallery-info .info-card h4 {
  width: calc(100vw * 130 / 1920);
  height: calc(100vw * 37 / 1920);
  margin: 0 0 calc(100vw * 10 / 1920) calc(100vw * 15 / 1920);
  padding-left: calc(100vw * 36 / 1920);
  font-size: calc(100vw * 20 / 1920);
}

html.compat-desktop .gallery-info .info-card p {
  margin: calc(100vw * 18 / 1920) 0 0 calc(100vw * 8 / 1920);
  font-size: calc(100vw * 20 / 1920);
}

html.compat-desktop .gallery-info .skills {
  gap: calc(100vw * 24 / 1920);
  margin-top: calc(100vw * 18 / 1920);
  margin-left: calc(100vw * 12 / 1920);
}

html.compat-desktop .gallery-info .skill-name {
  width: calc(100vw * 82 / 1920);
  font-size: calc(100vw * 20 / 1920);
}

html.compat-desktop .gallery-info .skill-name__icon {
  width: calc(100vw * 62 / 1920);
  height: calc(100vw * 62 / 1920);
}

html.compat-desktop .gallery-info .skill-name__text {
  margin-top: calc(100vw * 6 / 1920);
  font-size: calc(100vw * 20 / 1920);
}

html.compat-desktop .gallery-info .skill-name::after {
  bottom: calc(100% + calc(100vw * 12 / 1920));
  width: calc(100vw * 280 / 1920);
  padding: calc(100vw * 12 / 1920) calc(100vw * 14 / 1920);
  font-size: calc(100vw * 18 / 1920);
}

html.compat-desktop .gallery-visual {
  gap: calc(100vw * 70 / 1920);
  margin-left: calc(100vw * -155 / 1920);
}

html.compat-desktop .gallery-arrow {
  width: calc(100vw * 94 / 1920);
  height: calc(100vw * 100 / 1920);
  margin-top: calc(100vw * 125 / 1920);
}

html.compat-desktop .character-frame {
  width: calc(100vw * 620 / 1920);
  max-width: calc(100vw * 620 / 1920);
  min-height: calc(100vw * 620 / 1920);
}

html.compat-desktop .character-artwork {
  width: calc(100vw * 701 / 1920);
}

html.compat-desktop .gallery-avatars {
  gap: calc(100vw * 14 / 1920);
}

html.compat-desktop .gallery-avatars::before {
  top: calc(100vw * -34 / 1920);
  width: calc(100vw * 16 / 1920);
  height: calc(100vw * 676 / 1920);
}

html.compat-desktop .avatar {
  width: calc(100vw * 103 / 1920);
  height: calc(100vw * 103 / 1920);
  font-size: calc(100vw * 16 / 1920);
}

html.compat-desktop .avatar.is-active {
  width: calc(100vw * 140 / 1920);
  height: calc(100vw * 144 / 1920);
}

html.compat-desktop .avatar__image {
  width: calc(100vw * 79 / 1920);
  height: calc(100vw * 78 / 1920);
}

html.compat-desktop .avatar__label {
  width: calc(100vw * 78 / 1920);
  height: calc(100vw * 78 / 1920);
  font-size: calc(100vw * 15 / 1920);
}

html.compat-desktop .features {
  min-height: calc(100vw * 1164 / 1920);
  padding-bottom: calc(100vw * 110 / 1920);
  background-size: 100vw auto, 100vw auto;
}

html.compat-desktop .feature-showcase {
  grid-template-columns:
    calc(100vw * 67 / 1920)
    calc(100vw * 300 / 1920)
    calc(100vw * 421 / 1920)
    calc(100vw * 300 / 1920)
    calc(100vw * 67 / 1920);
  gap: calc(100vw * 18 / 1920);
}

html.compat-desktop .feature-card {
  height: calc(100vw * 862 / 1920);
}

html.compat-desktop .feature-card--main {
  width: calc(100vw * 421 / 1920);
  height: calc(100vw * 862 / 1920);
}

html.compat-desktop .feature-card--side {
  width: calc(100vw * 300 / 1920);
}

html.compat-desktop .features .gallery-arrow {
  width: calc(100vw * 67 / 1920);
  height: calc(100vw * 87 / 1920);
  margin-top: 0;
}

html.compat-desktop .footer {
  padding: calc(100vw * 32 / 1920) 0 calc(100vw * 34 / 1920);
}

html.compat-desktop .footer__company-cn {
  font-size: calc(100vw * 40 / 1920);
  letter-spacing: calc(100vw * 8 / 1920);
}

html.compat-desktop .footer__company-en,
html.compat-desktop .footer__copyright {
  font-size: calc(100vw * 12 / 1920);
}

html.compat-desktop .footer__notice {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  gap: calc(100vw * 24 / 1920);
}

html.compat-desktop .footer__rating {
  width: calc(100vw * 43 / 1920);
  height: calc(100vw * 57 / 1920);
}

html.compat-desktop .news-detail-page {
  min-height: 100vh;
  padding: calc(100vw * 118 / 1920) 0 calc(100vw * 46 / 1920);
  background-size: 100vw auto, 100vw auto;
}

html.compat-desktop .news-detail-card {
  width: calc(100vw * 854 / 1920);
  min-height: calc(100vw * 914 / 1920);
  padding: calc(100vw * 24 / 1920);
}

html.compat-desktop .news-detail-card::before {
  inset: calc(100vw * 13 / 1920);
}

html.compat-desktop .news-detail-card__inner {
  min-height: calc(100vw * 866 / 1920);
  padding: calc(100vw * 52 / 1920) calc(100vw * 58 / 1920);
}

html.compat-desktop .news-detail__title {
  padding-bottom: calc(100vw * 20 / 1920);
  font-size: calc(100vw * 32 / 1920);
}

html.compat-desktop .news-detail__date {
  margin-top: calc(100vw * 10 / 1920);
  font-size: calc(100vw * 16 / 1920);
}

html.compat-desktop .news-detail__image {
  width: calc(100vw * 659 / 1920);
  height: calc(100vw * 369 / 1920);
  margin-top: calc(100vw * 25 / 1920);
}

html.compat-desktop .news-detail__content {
  margin-top: calc(100vw * 34 / 1920);
  font-size: calc(100vw * 16 / 1920);
}

@media (max-width: 900px) {
  .news-panel {
    grid-template-columns: 1fr;
  }

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

  .gallery-info {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
  }

  .skills {
    justify-content: center;
  }

  .gallery-avatars {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .feature-card {
    min-height: 480px;
  }

  .feature-card--main {
    min-height: 600px;
  }
}

@media (max-width: 640px) {
  :root {
    --mobile-bg-width: 100vw;
    --container: calc(100% - 32px);
    --container: min(100% - 32px, 680px);
  }

  body {
    background: #f7eedf;
  }

  .page-shell {
    overflow: hidden;
  }

  .topbar {
    position: sticky;
    top: 0;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px 14px;
    min-height: 0;
    background: linear-gradient(180deg, rgba(92, 56, 23, 0.96), rgba(116, 73, 35, 0.92));
    box-shadow: 0 8px 24px rgba(68, 37, 10, 0.16);
  }

  .topbar--hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    min-height: calc(100vw * 106 / 720);
    height: calc(100vw * 106 / 720);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: calc(100vw * 10 / 720);
    padding: 0 calc(100vw * 18 / 720);
    background: rgba(101, 64, 29, 0.96);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .brand-mini {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar--hero-overlay .brand-mini {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .brand-mini__avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .topbar--hero-overlay .brand-mini__avatar {
    width: calc(100vw * 85 / 720);
    height: calc(100vw * 85 / 720);
    border-radius: calc(100vw * 18 / 720);
  }

  .brand-mini__text span {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .topbar--hero-overlay .brand-mini__text span {
    font-size: calc(100vw * 17 / 720);
    line-height: 1.1;
    white-space: nowrap;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .main-nav a {
    min-width: 0;
    height: 42px;
    padding: 0 8px;
    font-size: 14px;
    border-radius: 999px;
    background: rgba(255, 244, 221, 0.12);
    color: #fff6de;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }

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

  .main-nav a::before {
    width: 100%;
    height: 100%;
  }

  .topbar--hero-overlay .main-nav {
    display: none;
  }

  .topbar--hero-overlay .topbar-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
  }

  .topbar--detail {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: calc(100vw * 106 / 720);
    height: calc(100vw * 106 / 720);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: calc(100vw * 10 / 720);
    padding: 0 calc(100vw * 18 / 720);
    background: rgba(101, 64, 29, 0.96);
    box-shadow: none;
  }

  .topbar--detail .brand-mini {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .topbar--detail .brand-mini__avatar {
    width: calc(100vw * 85 / 720);
    height: calc(100vw * 85 / 720);
    border-radius: calc(100vw * 18 / 720);
  }

  .topbar--detail .brand-mini__text span {
    font-size: calc(100vw * 17 / 720);
    line-height: 1.1;
    white-space: nowrap;
  }

  .topbar--detail .main-nav {
    display: none;
  }

  .topbar--detail .topbar-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
  }

  .topbar-mobile-actions__btn {
    display: block;
    width: calc(100vw * 176 / 720);
    line-height: 0;
  }

  .topbar-mobile-actions__btn img {
    display: block;
    width: 100%;
    height: auto;
  }

  .hero {
    min-height: calc(var(--mobile-bg-width) * 1.9333);
    padding: 0;
    background-image: url("./images/hero-mobile-bg.jpg");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }

  .hero__logo {
    display: none;
  }

  .hero__inner {
    min-height: calc(var(--mobile-bg-width) * 1.9333);
    padding-top: 0;
    padding-bottom: calc(100vw * 80 / 720);
    justify-content: flex-end;
  }

  .hero__actions {
    order: 2;
    width: 100%;
    max-width: 640px;
    flex-wrap: wrap;
    gap: calc(100vw * 12 / 720);
    margin-top: 0;
    margin-bottom: calc(100vw * 22 / 720);
    justify-content: center;
  }

  .hero-btn--store {
    width: calc(100vw * 204 / 720);
    min-width: 0;
    max-width: none;
  }

  .hero-recharge-wrap {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: calc(100vw * 10 / 720);
  }

  .hero-btn--recharge {
    width: calc(100vw * 302 / 720);
  }

  .hero-bonus {
    position: static;
    transform: none;
    width: calc(100vw * 254 / 720);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(100vw * 12 / 720);
    align-self: center;
    animation: none;
  }

  .hero-recharge-wrap:hover .hero-bonus {
    transform: none;
  }

  .hero__title {
    order: 3;
    margin: 0;
  }

  .hero__title-picture {
    display: block;
  }

  .hero__title-image {
    width: 100%;
    max-width: 100%;
  }

  .section-pad {
    padding: 0;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .section-heading__image {
    width: 72vw;
    max-width: 320px;
    width: min(72vw, 320px);
  }

  .panel {
    border-radius: 24px;
  }

  .news,
  .gallery,
  .features {
    min-height: auto;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 100%;
  }

  .news {
    padding-top: 14px;
    padding-bottom: 0;
    background-image: url("./images/news-mobile-bg.jpg");
  }

  .news .container,
  .gallery .container {
    width: var(--container);
    max-width: none;
    min-width: 0;
  }

  .news-panel {
    min-height: 0;
    padding: 14vw 7vw 8vw;
    background-image: url("./images/news-panel-mobile.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 100%;
  }

  .news-panel__media,
  .news-panel__content {
    position: static;
    width: 100%;
  }

  .placeholder-card {
    width: 100%;
    height: auto;
    min-height: 180px;
    aspect-ratio: 659 / 369;
    border-width: 1px;
    border-radius: 16px;
  }

  .thumb-list {
    gap: 10px;
    margin-top: 14px;
  }

  .thumb-list__item {
    width: 12px;
    height: 16px;
  }

  .news-panel__content {
    margin-top: 18px;
    font-size: 16px;
  }

  .tabs {
    width: 100%;
    height: 48px;
  }

  .tab-btn {
    font-size: 15px;
  }

  .news-list {
    margin-top: 14px;
  }

  .news-list .news-item:nth-child(n + 5) {
    display: none;
  }

  .news-item {
    grid-template-columns: 58px 1fr 46px;
    gap: 8px;
    height: auto;
    min-height: 46px;
    padding: 8px 0;
  }

  .news-item span,
  .news-item strong {
    font-size: 14px;
    line-height: 1.4;
  }

  .news-item strong {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .news-item em {
    width: 46px;
    height: 24px;
    justify-self: end;
  }

  .pager {
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
  }

  .gallery {
    padding-top: 14px;
    padding-bottom: 0;
    background-image: url("./images/gallery-mobile-bg.jpg");
  }

  .gallery-stage--compact {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .gallery-stage--compact .gallery-info {
    display: none;
  }

  .switcher,
  .switcher--wide {
    gap: 0;
    margin-top: 18px;
    margin-bottom: 22px;
  }

  .switcher--wide button,
  .switcher button {
    width: auto;
    min-width: 0;
  }

  .switcher--wide {
    width: 100%;
    height: 62px;
    padding: 7px 10px;
  }

  .switcher button {
    font-size: 16px;
  }

  .switcher--wide button {
    flex: 1 1 0;
    height: 48px;
  }

  .gallery-stage {
    gap: 10px;
  }

  .gallery-info,
  .gallery-visual,
  .gallery-avatars {
    width: 100%;
    max-width: none;
  }

  .gallery-visual {
    position: relative;
    order: 1;
    justify-content: center;
    gap: 0;
    margin-left: 0;
    padding: 0 28px;
  }

  .gallery-visual--solo {
    width: 100%;
  }

  .gallery-info {
    order: 3;
    text-align: center;
  }

  .gallery-avatars {
    order: 2;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    margin-top: -8px;
  }

  .character-frame--trigger {
    background: transparent;
  }

  .gallery-avatars::before {
    display: none;
  }

  .gallery-arrow {
    position: absolute;
    top: 42%;
    z-index: 2;
    width: 34px;
    height: 38px;
    margin-top: 0;
    transform: translateY(-50%);
  }

  .gallery-arrow--left {
    left: 0;
  }

  .gallery-arrow--right {
    right: 0;
  }

  .character-frame {
    width: 100%;
    min-height: 340px;
  }

  .character-artwork {
    width: 92vw;
    max-width: 520px;
    width: min(92vw, 520px);
    max-width: 100%;
  }

  .avatar {
    width: 64px;
    height: 64px;
    font-size: 12px;
  }

  .avatar.is-active {
    width: 82px;
    height: 84px;
  }

  .avatar__image,
  .avatar__label {
    width: 48px;
    height: 48px;
  }

  .gallery-nameplate {
    width: 70vw;
    max-width: 270px;
    width: min(270px, 70vw);
    height: auto;
    aspect-ratio: 286 / 142;
    margin: 0 auto;
  }

  .gallery-info h3 {
    right: 2px;
    width: calc(100% - 56px);
  }

  .gallery-nameplate__name {
    max-width: 100%;
    height: 54px;
  }

  .gallery-info__role {
    width: auto;
    margin: -16px 0 12px;
    font-size: 18px;
  }

  .stars {
    justify-content: center;
    margin: 0 0 10px;
  }

  .stars img {
    width: 22px;
    height: auto;
  }

  .info-card h4 {
    margin-left: auto;
    margin-right: auto;
    padding-left: 34px;
  }

  .info-card p {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.6;
  }

  .skills {
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    margin-left: 0;
  }

  .skill-name {
    width: 72px;
    font-size: 16px;
  }

  .skill-name__icon {
    width: 54px;
    height: 54px;
  }

  .skill-name__text {
    font-size: 16px;
  }

  .gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
  }

  .gallery-modal:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(72, 58, 40, 0.68);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }

  @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .gallery-modal__backdrop {
      background: rgba(72, 58, 40, 0.82);
    }
  }

  .gallery-modal__dialog {
    position: relative;
    width: calc(100vw - 28px);
    max-width: 660px;
    width: min(calc(100vw - 28px), 660px);
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(247, 239, 228, 0.98));
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(59, 37, 13, 0.24);
    overflow: visible;
  }

  .gallery-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 249, 240, 0.96);
    box-shadow: inset 0 0 0 2px rgba(187, 141, 84, 0.7);
    cursor: pointer;
  }

  .gallery-modal__close::before,
  .gallery-modal__close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    background: #c08d53;
    transform-origin: center;
  }

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

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

  .gallery-modal__content {
    display: block;
    min-height: 0;
  }

  .gallery-modal__info {
    padding: 32px 20px 24px;
    text-align: left;
  }

  .gallery-nameplate--modal {
    margin: 0;
  }

  .gallery-nameplate--modal h3 {
    position: absolute;
    right: 10px;
    top: 8px;
    display: block;
    width: calc(100% - 62px);
    margin: 0;
    color: #8a5732;
    font-family: "GalleryTitleFont", SimSun, "Songti SC", "STSong", serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    white-space: nowrap;
  }

  .gallery-info__role--modal {
    margin: -35px 0 10px;
    font-size: 16px;
  }

  .stars--modal {
    justify-content: center;
    margin: 0 0 14px;
  }

  .info-card--modal {
    margin-top: 16px;
  }

  .info-card--modal h4 {
    display: flex;
    align-items: center;
    width: calc(100vw * 130 / 720);
    max-width: calc(100vw * 130 / 720);
    height: calc(100vw * 37 / 720);
    margin-left: 0;
    margin-right: auto;
    margin-bottom: calc(100vw * 10 / 720);
    padding-left: calc(100vw * 36 / 720);
    background-size: 100% 100%;
    font-size: calc(100vw * 20 / 720);
    flex: 0 0 auto;
  }

  .info-card--modal p {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
  }

  .skills--modal {
    justify-content: flex-start;
    gap: 18px;
    margin-left: 0;
  }

  .skills--modal .skill-name {
    position: relative;
    overflow: visible;
  }

  .skills--modal .skill-name::after {
    left: 0;
    bottom: calc(100% + 8px);
    width: calc(100vw - 56px);
    max-width: 220px;
    width: min(220px, calc(100vw - 56px));
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    transform: translate(0, 8px);
    text-align: left;
    white-space: normal;
    box-sizing: border-box;
  }

  .skills--modal .skill-name:hover::after,
  .skills--modal .skill-name:focus-visible::after {
    transform: translate(0, 0);
  }

  .feature-showcase {
    position: relative;
    display: block;
    width: 100%;
    max-width: 420px;
    width: min(100%, 420px);
    margin: 0 auto;
    padding: 0 0 12px;
    min-height: 0;
  }

  .feature-showcase > .gallery-arrow {
    display: block;
  }

  .features {
    padding-top: 14px;
    padding-bottom: 20px;
    background-image: url("./images/features-mobile-bg.jpg");
  }

  .features .gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 34px;
    height: 44px;
    margin-top: 0;
    transform: translateY(-50%);
  }

  .features .gallery-arrow--left {
    left: 2px;
  }

  .features .gallery-arrow--right {
    right: 2px;
  }

  .feature-card,
  .feature-card--main {
    width: 72vw;
    max-width: 392px;
    width: min(392px, 72vw);
    height: auto;
    min-height: 0;
    transform: none;
  }

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

  .feature-card--main {
    position: relative;
    z-index: 2;
    margin: 0 auto;
  }

  .feature-card--main .feature-card__image {
    filter: drop-shadow(0 14px 24px rgba(90, 54, 17, 0.18));
  }

  .feature-card__content {
    padding: 0;
  }

  .feature-card__content--main {
    padding: 0;
  }

  .feature-dots {
    display: none;
    margin-top: 20px;
  }

  .footer {
    padding: 28px 0 30px;
  }

  .footer__company-cn {
    font-size: 30px;
    letter-spacing: 2px;
  }

  .footer__company-en,
  .footer__copyright {
    font-size: 11px;
  }

  .footer__notice {
    gap: 12px;
  }

  .footer__notice-text p {
    font-size: 10px;
    line-height: 1.5;
  }

  .news-detail-page {
    background-image:
      linear-gradient(180deg, rgba(251, 246, 236, 0.2), rgba(251, 246, 236, 0.2)),
      url("./images/news-mobile-bg.jpg");
    background-size: 100% auto, 100% auto;
    padding-top: calc(100vw * 106 / 720 + 16px);
  }

  .news-detail-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 12px 14px;
    padding: 0 16px;
    height: 36px;
    border-radius: 999px;
    background: rgba(122, 78, 40, 0.9);
    color: #fff4df;
    font-family: "SimHei", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(88, 53, 19, 0.12);
  }

  .news-detail-back::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
  }
}

@media (max-width: 480px) {
  :root {
    --container: calc(100% - 24px);
  }

  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .topbar--hero-overlay {
    left: 0;
    right: 0;
    top: 0;
    gap: calc(100vw * 8 / 720);
    padding: 0 calc(100vw * 14 / 720);
  }

  .topbar--detail {
    left: 0;
    right: 0;
    top: 0;
    gap: calc(100vw * 8 / 720);
    padding: 0 calc(100vw * 14 / 720);
  }

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

  .main-nav a {
    font-size: 13px;
  }

  .hero {
    min-height: calc(var(--mobile-bg-width) * 2.02);
  }

  .hero__inner {
    min-height: calc(var(--mobile-bg-width) * 2.02);
    padding-bottom: calc(100vw * 80 / 720);
  }

  .hero__actions {
    gap: calc(100vw * 10 / 720);
    margin-bottom: calc(100vw * 18 / 720);
  }

  .hero-btn--store {
    width: calc(100vw * 204 / 720);
  }

  .hero-btn--recharge {
    width: calc(100vw * 302 / 720);
  }

  .hero-bonus {
    width: calc(100vw * 254 / 720);
  }

  .hero__title-image {
    width: 100%;
  }

  .topbar-mobile-actions {
    gap: 6px;
  }

  .topbar-mobile-actions__btn {
    width: calc(100vw * 170 / 720);
  }

  .news-detail-page {
    padding-top: calc(100vw * 106 / 720 + 12px);
  }

  .news-detail-back {
    margin-left: 10px;
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
  }

  .section-heading {
    gap: 14px;
    margin-bottom: 16px;
  }

  .news,
  .gallery,
  .features {
    padding-bottom: 0;
  }

  .news-panel {
    padding: 13vw 6vw 8vw;
  }

  .news-item {
    grid-template-columns: 52px 1fr 42px;
  }

  .news-item span,
  .news-item strong,
  .pager {
    font-size: 13px;
  }

  .switcher button {
    font-size: 14px;
  }

  .gallery-visual {
    padding: 0 22px;
  }

  .character-frame {
    min-height: 300px;
  }

  .avatar {
    width: 58px;
    height: 58px;
  }

  .avatar.is-active {
    width: 74px;
    height: 78px;
  }

  .avatar__image,
  .avatar__label {
    width: 44px;
    height: 44px;
  }

  .gallery-nameplate__name {
    height: 48px;
  }

  .gallery-info h3 {
    width: calc(100% - 50px);
    font-size: 50px;
  }

  .gallery-info__role,
  .info-card p,
  .skill-name__text {
    font-size: 15px;
  }

  .skill-name {
    width: 66px;
  }

  .feature-card,
  .feature-card--main {
    width: 70vw;
    max-width: 376px;
    width: min(376px, 70vw);
  }

  .feature-showcase {
    min-height: calc(100vw * 760 / 720);
  }

  .features .gallery-arrow {
    width: 30px;
    height: 40px;
  }

  .feature-card--side {
    top: calc(100vw * 58 / 720);
    width: min(252px, 48vw);
  }

  #featureSideLeft {
    transform: translateX(2px);
  }

  #featureSideRight {
    transform: translateX(-2px);
  }

  .gallery-modal__dialog {
    width: calc(100vw - 20px);
    max-width: 660px;
    width: min(calc(100vw - 20px), 660px);
    margin-top: 0;
    border-radius: 14px;
  }

  .gallery-modal__content {
    grid-template-columns: 1fr;
  }

  .gallery-modal__info {
    padding: 24px 16px 20px;
  }

  .gallery-nameplate--modal h3 {
    font-size: 32px;
  }


  .footer__notice {
    align-items: flex-start;
  }

  .footer__rating {
    width: 34px;
    height: auto;
  }

  .news-detail-card {
    width: calc(100% - 20px);
    min-height: 0;
    padding: 14px;
  }

  .news-detail-card__inner {
    min-height: 0;
    padding: 28px 20px;
  }

  .news-detail__title {
    font-size: 24px;
  }

  .news-detail__image {
    width: 100%;
    height: auto;
    aspect-ratio: 659 / 369;
  }
}
