:root {
  --peach: #f3d5c2;
  --peach-soft: #f8e7db;
  --ink: #2a2428;
  --ink-soft: #4a3f45;
  --palace-red: #c23b2e;
  --palace-red-deep: #8f2a21;
  --lantern: #e8a84a;
  --lantern-soft: #f0c57a;
  --jade: #3e8b7e;
  --mist: rgba(243, 213, 194, 0.18);
  --paper: rgba(255, 248, 242, 0.92);
  --line: rgba(42, 36, 40, 0.12);
  --shadow: 0 18px 50px rgba(42, 36, 40, 0.18);
  --radius: 2px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-h: 72px;
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #1c1618;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(232, 168, 74, 0.14), transparent 60%),
    linear-gradient(180deg, #f8e7db 0%, #f3d5c2 100%);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

body.page-home {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(232, 168, 74, 0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(194, 59, 46, 0.12), transparent 55%),
    linear-gradient(180deg, #2a2428 0%, #3a2d2f 42vh, #f3d5c2 42vh, #f8e7db 100%);
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Petals */
.petal-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 14px;
  background: radial-gradient(circle at 30% 30%, #ff6b5a, var(--palace-red));
  border-radius: 70% 30% 70% 30%;
  opacity: 0.55;
  animation: petal-fall linear infinite;
}

@keyframes petal-fall {
  0% { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.55; }
  100% { transform: translate3d(40px, 110vh, 0) rotate(360deg); opacity: 0; }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(28, 22, 24, 0.82), rgba(28, 22, 24, 0.55));
  border-bottom: 1px solid rgba(243, 213, 194, 0.12);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(28, 22, 24, 0.92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.site-header__inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--peach-soft);
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand__text small {
  color: rgba(243, 213, 194, 0.7);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav__link {
  color: rgba(248, 231, 219, 0.82);
  padding: 8px 10px;
  font-size: 14px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: #fff;
  background: rgba(194, 59, 46, 0.28);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid rgba(243, 213, 194, 0.25);
  background: transparent;
  border-radius: var(--radius);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--peach);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(180deg, #d54a3b, var(--palace-red-deep));
  color: #fff8f2;
  box-shadow: 0 8px 20px rgba(194, 59, 46, 0.35);
}

.btn--ghost {
  background: rgba(255, 248, 242, 0.1);
  color: var(--peach-soft);
  border: 1px solid rgba(243, 213, 194, 0.35);
}

.btn--ink {
  background: var(--ink);
  color: var(--peach-soft);
}

.btn--jade {
  background: linear-gradient(180deg, #4aa396, var(--jade));
  color: #f7fffd;
}

.btn--sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

.btn-img {
  height: 48px;
  width: auto;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-img:hover {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.label-img {
  height: 40px;
  width: auto;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  color: #fff8f2;
  overflow: hidden;
}

.hero__media,
.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(28, 22, 24, 0.35) 0%, rgba(28, 22, 24, 0.15) 40%, rgba(28, 22, 24, 0.78) 100%),
    radial-gradient(ellipse at 50% 80%, rgba(194, 59, 46, 0.22), transparent 55%);
}

.hero__video-note {
  position: absolute;
  left: max(20px, calc((100% - var(--max)) / 2));
  bottom: 18px;
  z-index: 3;
  margin: 0;
  max-width: min(520px, calc(100% - 40px));
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(255, 248, 242, 0.92);
  background: rgba(28, 22, 24, 0.68);
  border: 1px solid rgba(243, 213, 194, 0.22);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) 0 72px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--lantern-soft);
  letter-spacing: 0.18em;
  font-size: 13px;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--lantern);
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 104px);
  line-height: 0.95;
  letter-spacing: 0.12em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  animation: brand-in 1s ease both;
}

.hero__slogan {
  margin: 18px 0 0;
  max-width: 32em;
  font-size: clamp(16px, 2.1vw, 19px);
  font-weight: 300;
  color: rgba(255, 248, 242, 0.92);
  line-height: 1.7;
  animation: fade-up 0.9s 0.15s ease both;
}

.hero__slogan em {
  display: block;
  margin-top: 10px;
  font-style: normal;
  color: var(--lantern-soft);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  font-size: 1.05em;
}

.hero__meta {
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(243, 213, 194, 0.72);
  animation: fade-up 0.9s 0.22s ease both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  animation: fade-up 0.9s 0.28s ease both;
}

.hero__cta--reserve {
  margin-top: 28px;
  margin-bottom: 0;
}

.hero__cta--reserve + .hero__cta {
  margin-top: 14px;
}

.hero__cta--pixel {
  margin-top: 14px;
  opacity: 0.95;
}

.hero__cta .pixel-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

@keyframes brand-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Countdown */
.countdown {
  margin-top: 36px;
  display: grid;
  gap: 14px;
  animation: fade-up 0.9s 0.35s ease both;
}

.countdown__label {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: rgba(248, 231, 219, 0.75);
}

.countdown__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.countdown__cell {
  min-width: 78px;
  padding: 12px 10px;
  background: rgba(28, 22, 24, 0.45);
  border: 1px solid rgba(243, 213, 194, 0.2);
  border-radius: var(--radius);
  text-align: center;
  backdrop-filter: blur(8px);
}

.countdown__num {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: #fff;
}

.countdown__unit {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--peach);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section--paper {
  background:
    linear-gradient(180deg, rgba(255, 248, 242, 0.96), rgba(248, 231, 219, 0.96)),
    url("../images/bj1.JPEG") center/cover;
}

.section--ink {
  background: linear-gradient(180deg, #241c1f, #2f2428);
  color: var(--peach-soft);
}

.section__head {
  margin-bottom: 36px;
  max-width: 40rem;
}

.section__eyebrow {
  margin: 0 0 10px;
  color: var(--palace-red);
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 500;
}

.section--ink .section__eyebrow {
  color: var(--lantern);
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.08em;
  line-height: 1.25;
  font-weight: 700;
}

.section__desc {
  margin: 14px 0 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
}

.section__action {
  margin: 28px 0 0;
}

.section--values {
  padding: 36px 0 8px;
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.value-card {
  padding: 28px 24px;
  background: rgba(255, 248, 242, 0.94);
  border: 1px solid var(--line);
  border-top: 2px solid var(--palace-red);
  box-shadow: var(--shadow);
}

.value-card__no {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--palace-red);
}

.value-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.08em;
}

.value-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
}

.card-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--palace-red);
}

.card-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.btn--ink-border {
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

.section--ink .section__desc {
  color: rgba(243, 213, 194, 0.78);
}

/* Progress */
.progress-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

.progress-ring {
  --p: 28;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #fff8f2 62%, transparent 63%),
    conic-gradient(var(--palace-red) calc(var(--p) * 1%), rgba(42, 36, 40, 0.12) 0);
  box-shadow: var(--shadow);
}

.progress-ring__inner {
  text-align: center;
}

.progress-ring__num {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--palace-red);
}

.progress-ring__num small {
  font-size: 20px;
}

.progress-ring__label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}

.progress-list {
  display: grid;
  gap: 16px;
}

.progress-item {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.progress-item__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.progress-item__bar {
  height: 8px;
  background: rgba(42, 36, 40, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-item__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--palace-red), var(--lantern));
  border-radius: inherit;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-item__note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Games */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.game-card {
  position: relative;
  padding: 22px 20px;
  background: rgba(255, 248, 242, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--palace-red);
}

.game-card[data-status="ready"]::before { background: var(--jade); }
.game-card[data-status="upgrading"]::before { background: var(--lantern); }
.game-card[data-status="planned"]::before { background: #8a7d84; }

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.game-card__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.game-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.04em;
}

.game-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.platforms {
  display: flex;
  gap: 6px;
  margin: 14px 0 0;
}

.platforms span {
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.badge--ready {
  background: rgba(62, 139, 126, 0.15);
  color: #24685d;
}

.badge--upgrading {
  background: rgba(232, 168, 74, 0.2);
  color: #8a5a12;
}

.badge--planned {
  background: rgba(42, 36, 40, 0.08);
  color: #6a5d64;
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--lantern), rgba(243, 213, 194, 0.2));
}

.timeline__item {
  position: relative;
  padding: 0 0 28px 18px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #5a4c52;
  box-shadow: 0 0 0 4px rgba(243, 213, 194, 0.12);
}

.timeline__item.is-done::before {
  background: var(--lantern);
}

.timeline__date {
  margin: 0;
  color: var(--lantern-soft);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.timeline__title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
}

.timeline__body {
  margin: 8px 0 0;
  color: rgba(243, 213, 194, 0.78);
  max-width: 42rem;
}

/* News / community */
.news-list {
  display: grid;
  gap: 14px;
}

.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.news-item time {
  color: var(--palace-red);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.news-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-family: var(--font-display);
}

.news-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.community-card,
.address-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 248, 242, 0.8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.community-card h3,
.address-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 28px;
}

.qq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.qq-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  padding: 16px 18px;
  background: rgba(194, 59, 46, 0.05);
  border-left: 3px solid var(--palace-red);
}

.qq-list__name {
  color: var(--ink-soft);
  font-size: 14px;
}

.qq-list__id {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.address-card code {
  display: block;
  margin: 14px 0;
  padding: 14px 16px;
  font-size: 22px;
  letter-spacing: 0.04em;
  background: var(--ink);
  color: var(--lantern-soft);
  border-radius: var(--radius);
  text-align: center;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 56px;
  color: #fff8f2;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(28, 22, 24, 0.78), rgba(28, 22, 24, 0.45)),
    url("../images/bj1.JPEG") center/cover;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: 0.08em;
}

.page-hero p {
  margin: 12px 0 0;
  max-width: 36rem;
  color: rgba(255, 248, 242, 0.82);
}

/* Changelog / download / ranking shells */
.shell-panel {
  padding: 48px 0 80px;
}

.changelog-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
}

.changelog-sidebar,
.changelog-main,
.dl-card,
.rank-panel {
  background: rgba(255, 248, 242, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.changelog-sidebar {
  padding: 18px;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.changelog-sidebar h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
}

.changelog-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.changelog-sidebar a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--ink-soft);
}

.changelog-sidebar a.is-active,
.changelog-sidebar a:hover {
  background: rgba(194, 59, 46, 0.1);
  color: var(--palace-red);
}

.changelog-main {
  padding: 8px 0;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dl-card {
  padding: 22px;
}

.dl-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
}

.dl-card p,
.dl-card li {
  color: var(--ink-soft);
  font-size: 14px;
}

.dl-card .badge {
  margin-bottom: 10px;
}

.rank-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
}

.rank-modes {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 248, 242, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.rank-mode {
  border: 1px solid var(--line);
  background: #fff;
  min-height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink);
}

.rank-mode.is-active,
.rank-mode:hover {
  background: rgba(194, 59, 46, 0.1);
  border-color: rgba(194, 59, 46, 0.35);
  color: var(--palace-red-deep);
}

.rank-panel {
  padding: 24px;
  min-height: 420px;
}

.rank-empty {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 320px;
  color: var(--ink-soft);
}

.rank-empty strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: #1c1618;
  color: rgba(243, 213, 194, 0.78);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(243, 213, 194, 0.12);
}

.footer-brand__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  color: #fff8f2;
  letter-spacing: 0.14em;
}

.footer-brand__tag,
.footer-brand__ver,
.footer-brand__addr,
.footer-groups p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
}

.footer-brand__addr {
  color: var(--lantern-soft);
  letter-spacing: 0.04em;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-col__title,
.footer-groups__title {
  margin: 0 0 10px;
  color: #fff8f2;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.1em;
}

.footer-links a:hover {
  color: var(--lantern-soft);
}

.footer-groups__id {
  font-family: var(--font-display) !important;
  font-size: 22px !important;
  color: var(--lantern-soft) !important;
  letter-spacing: 0.08em;
}

.footer-groups__hint {
  opacity: 0.65;
  font-size: 12px !important;
}

.footer-legal {
  padding-top: 18px;
  font-size: 13px;
  text-align: center;
}

.footer-legal p {
  margin: 6px 0;
}

.footer-legal img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

.footer-sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* Modal / toast / user */
.modal[hidden],
.modal.is-hidden,
.auth-form[hidden],
.auth-form.is-hidden,
.auth-tabs[hidden],
.auth-tabs.is-hidden,
.auth-closed-banner[hidden],
.auth-closed-banner.is-hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(20, 14, 16, 0.62);
  padding: clamp(12px, 3vw, 24px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.modal.dl-modal {
  place-items: start center;
  padding-top: 12vh;
  background: rgba(20, 14, 16, 0.55);
}

.modal__panel {
  width: min(420px, 100%);
  background: #fff8f2;
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-modal__panel {
  width: min(440px, 100%);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  margin: auto;
}

.auth-modal__body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: clamp(12px, 2.5vw, 16px) clamp(14px, 3vw, 18px);
  background: var(--ink);
  color: var(--peach-soft);
  flex-shrink: 0;
}

.modal__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.6vw, 22px);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.modal__close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: clamp(24px, 4vw, 28px);
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff8f2;
  z-index: 1;
}

.auth-tab {
  min-height: clamp(40px, 6vw, 44px);
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  font-size: clamp(13px, 2.2vw, 14px);
}

.auth-tab.is-active {
  color: var(--palace-red);
  box-shadow: inset 0 -2px 0 var(--palace-red);
}

.auth-closed-banner {
  padding: 8px 4px 4px;
}

.auth-closed-banner h2,
.auth-closed-banner h4 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: clamp(18px, 3vw, 22px);
}

.auth-closed-banner p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.75;
  font-size: clamp(13px, 2.2vw, 15px);
}

.auth-closed-banner__qq {
  color: var(--ink) !important;
}

.auth-closed-banner--modal {
  padding: clamp(14px, 3vw, 20px);
}

.auth-form {
  display: grid;
  gap: clamp(12px, 2.5vw, 16px);
  padding: clamp(14px, 3vw, 20px);
}

.auth-form textarea {
  width: 100%;
  min-height: 160px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  resize: vertical;
  line-height: 1.7;
  font-size: 14px;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 12px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  font-size: clamp(13px, 2.2vw, 14px);
}

.auth-form input {
  width: 100%;
  min-height: clamp(40px, 6vw, 44px);
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 16px; /* 避免 iOS 自动放大 */
}

.auth-form .btn {
  min-height: clamp(42px, 6vw, 46px);
  font-size: clamp(13px, 2.2vw, 14px);
}

.auth-form__hint {
  margin: 0;
  text-align: center;
  font-size: 13px;
}

.auth-form__hint a {
  color: var(--palace-red);
}

html.auth-modal-open,
body.auth-modal-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .auth-modal__panel {
    width: 100%;
    max-height: min(92vh, 100%);
    border-radius: 8px;
  }

  .auth-form {
    gap: 12px;
  }
}

@media (max-height: 560px) {
  .auth-modal__panel {
    max-height: 94vh;
  }

  .auth-form {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .auth-form input {
    min-height: 38px;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 90;
  padding: 12px 18px;
  background: rgba(28, 22, 24, 0.92);
  color: #fff8f2;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.toast[hidden] { display: none !important; }

.user-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--peach-soft);
  cursor: pointer;
}

.user-chip[hidden] { display: none !important; }

.user-chip__avatar {
  border-radius: 50%;
  background: #fff;
}

.user-chip__menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 120px;
  background: #fff8f2;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.user-chip:hover .user-chip__menu,
.user-chip:focus-within .user-chip__menu {
  display: grid;
}

.user-chip__menu a,
.user-chip__menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.user-chip__menu a:hover,
.user-chip__menu button:hover {
  background: rgba(194, 59, 46, 0.08);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Changelog entries (rendered by changelog.min.js) */
.log-entry {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.log-entry time {
  color: var(--palace-red);
  font-size: 13px;
}

.log-entry > h2 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: 26px;
}

.log-body {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.log-body--rich img,
.log-img-wrap img {
  margin: 12px 0;
  border-radius: var(--radius);
}

.log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-soft);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(194, 59, 46, 0.1);
  color: var(--palace-red-deep);
}

.changelog-year-heading {
  margin: 0;
  padding: 18px 24px 8px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}

.changelog-load-err {
  padding: 24px;
  color: var(--palace-red);
}

/* Download cards from download-page.min.js */
.dl-card__ribbon {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(194, 59, 46, 0.12);
  color: var(--palace-red-deep);
  font-size: 12px;
}

.dl-card--feat {
  box-shadow: var(--shadow);
  border-color: rgba(194, 59, 46, 0.28);
}

.dl-ver,
.dl-facts,
.dl-bullets {
  color: var(--ink-soft);
  font-size: 14px;
}

.dl-facts,
.dl-bullets {
  padding-left: 18px;
}

.dl-card__ft {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.dl-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
}

.dl-btn--primary {
  background: linear-gradient(180deg, #d54a3b, var(--palace-red-deep));
  color: #fff8f2;
}

.dl-btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.dl-empty {
  padding: 24px;
  color: var(--ink-soft);
}

/* Settings keep-simple */
.settings-wrap {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.settings-card {
  background: rgba(255, 248, 242, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 960px) {
  .progress-hero,
  .community-panel,
  .games-grid,
  .dl-grid,
  .rank-layout,
  .changelog-layout,
  .footer-grid,
  .values-grid,
  .news-item {
    grid-template-columns: 1fr;
  }

  .progress-ring {
    margin: 0 auto;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .changelog-sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(28, 22, 24, 0.96);
    border-bottom: 1px solid rgba(243, 213, 194, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header__actions .btn--ghost {
    display: none;
  }

  .hero__content {
    padding-bottom: 48px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 首页网易云音乐浮层（右下角，透明可拉出） ---------- */
.music-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.music-dock__handle,
.music-dock__panel,
.music-dock__panel * {
  pointer-events: auto;
}

.music-dock__handle {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 248, 242, 0.28);
  border-radius: 999px;
  background: rgba(28, 22, 24, 0.42);
  color: #fff8f2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(28, 22, 24, 0.22);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.music-dock__handle:hover {
  transform: translateY(-1px);
  background: rgba(28, 22, 24, 0.58);
}

.music-dock.is-playing .music-dock__handle {
  border-color: rgba(232, 168, 74, 0.55);
  box-shadow: 0 10px 28px rgba(194, 59, 46, 0.28);
}

.music-dock__wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.music-dock__wave i {
  display: block;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: #fff8f2;
  opacity: 0.85;
}

.music-dock.is-playing .music-dock__wave i {
  animation: music-wave 0.9s ease-in-out infinite;
}

.music-dock.is-playing .music-dock__wave i:nth-child(2) {
  animation-delay: 0.12s;
  height: 12px;
}

.music-dock.is-playing .music-dock__wave i:nth-child(3) {
  animation-delay: 0.24s;
  height: 8px;
}

@keyframes music-wave {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1.25); }
}

.music-dock__panel {
  min-width: 210px;
  max-width: min(260px, calc(100vw - 84px));
  padding: 12px 12px 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 248, 242, 0.22);
  background: rgba(28, 22, 24, 0.48);
  color: #fff8f2;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px rgba(28, 22, 24, 0.28);
  opacity: 0;
  transform: translateX(12px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.music-dock__panel.is-show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.music-dock__panel[hidden] {
  display: none !important;
}

.music-dock__meta {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}

.music-dock__meta strong {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.music-dock__meta span {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(243, 213, 194, 0.72);
}

.music-dock__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.music-dock__btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 248, 242, 0.18);
  border-radius: 999px;
  background: rgba(255, 248, 242, 0.1);
  color: #fff8f2;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.music-dock__btn--main {
  width: 44px;
  height: 44px;
  font-size: 15px;
  background: rgba(194, 59, 46, 0.72);
  border-color: rgba(232, 168, 74, 0.35);
}

.music-dock__btn:hover {
  background: rgba(194, 59, 46, 0.55);
  transform: translateY(-1px);
}

.music-dock__btn--main:hover {
  background: rgba(194, 59, 46, 0.9);
}

.music-dock__btn--ghost {
  margin-left: auto;
  background: transparent;
  font-size: 18px;
  line-height: 1;
}

.music-dock__volume {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 12px;
  color: rgba(243, 213, 194, 0.8);
  letter-spacing: 0.06em;
}

.music-dock__volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 248, 242, 0.22);
  outline: none;
  cursor: pointer;
}

.music-dock__volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e8a84a;
  border: 2px solid #fff8f2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.music-dock__volume input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e8a84a;
  border: 2px solid #fff8f2;
}

@media (max-width: 520px) {
  .music-dock {
    right: 12px;
    bottom: 12px;
  }

  .music-dock__handle {
    width: 44px;
    height: 44px;
  }

  .music-dock__panel {
    min-width: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .music-dock.is-playing .music-dock__wave i {
    animation: none;
  }
}

/* reserve */
.hero-reserve {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.hero-reserve:hover {
  opacity: 0.92;
}

.hero-reserve:focus-visible {
  outline: 2px solid var(--lantern);
  outline-offset: 3px;
}

.hero-reserve__img {
  display: block;
  width: min(280px, 72vw);
  height: auto;
}

.reserve-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(300px, 1.1fr);
  gap: 28px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}

.reserve-aside {
  background: #2a2428;
  color: var(--peach-soft);
  border: 1px solid rgba(232, 168, 74, 0.22);
  border-radius: var(--radius);
  padding: 24px;
}

.reserve-count-banner {
  margin-top: 22px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(42, 36, 40, 0.55);
  border: 1px solid rgba(232, 168, 74, 0.35);
  border-radius: 8px;
  color: var(--peach-soft);
}

.reserve-count-banner__label {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(248, 231, 219, 0.78);
}

.reserve-count-banner__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--lantern);
  letter-spacing: 0.04em;
  line-height: 1;
}

.reserve-count-banner__unit {
  font-size: 14px;
  color: rgba(248, 231, 219, 0.72);
}

.reserve-aside__stat {
  margin-top: 22px;
  padding: 16px 14px;
  text-align: center;
  background: rgba(248, 231, 219, 0.08);
  border: 1px solid rgba(232, 168, 74, 0.28);
  border-radius: 8px;
}

.reserve-aside__stat-label {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--lantern-soft);
}

.reserve-aside__stat-num {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff8f2;
  line-height: 1.1;
}

.reserve-aside__stat-num small {
  margin-left: 4px;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(248, 231, 219, 0.7);
}

.reserve-aside h2 {
  margin: 6px 0 16px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: #fff8f2;
}

.reserve-points {
  margin: 0;
  padding: 0 0 0 1.1em;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(248, 231, 219, 0.86);
}

.reserve-aside__meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(248, 231, 219, 0.16);
  display: grid;
  gap: 8px;
}

.reserve-aside__meta p {
  margin: 0;
  display: flex;
  gap: 12px;
  font-size: 13px;
}

.reserve-aside__meta span {
  min-width: 3.2em;
  color: var(--lantern-soft);
  letter-spacing: 0.08em;
}

.reserve-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-bottom: 8px;
}

.reserve-card__head h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.reserve-card__badge {
  display: block;
  width: min(200px, 55vw);
  height: auto;
  border-radius: 4px;
}

.reserve-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.reserve-code-row__field {
  margin: 0;
}

.reserve-success {
  text-align: left;
}

.reserve-success h2 {
  margin: 6px 0 12px;
  font-family: var(--font-display);
}

.reserve-success__meta {
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(42, 36, 40, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reserve-success__meta > div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 8px;
  font-size: 14px;
}

.reserve-success__meta dt {
  margin: 0;
  color: var(--ink-soft);
}

.reserve-success__meta dd {
  margin: 0;
  word-break: break-all;
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 860px) {
  .reserve-layout {
    grid-template-columns: 1fr;
  }

  .reserve-code-row {
    grid-template-columns: 1fr;
  }

  .reserve-code-row .btn {
    width: 100%;
  }
}
