/* ==========================================================================
   Zone11 Hub · 门户 SPA 样式
   深色科技 × 东方幻想：细网格背景、玻璃卡片、游戏 accent 光晕。
   零外部资源，字体使用系统栈。
   ========================================================================== */

/* ------------------------------- 设计变量 ------------------------------- */
:root {
  --bg: #05080c;
  --bg-soft: #080c12;
  --panel: rgba(16, 22, 30, 0.62);
  --panel-solid: rgba(11, 16, 23, 0.9);
  --line: rgba(214, 225, 238, 0.1);
  --line-strong: rgba(214, 225, 238, 0.18);
  --text: #e9eef4;
  --text-dim: #9ba9b7;
  --text-faint: #6d7a89;
  --gold: #c9a24a;
  --gold-soft: #e8cf8f;
  --gold-deep: #a9822f;
  --cyan: #6ea8b8;
  --cyan-soft: #b6dde6;
  --cyan-deep: #4b8394;
  --danger: #e08b7f;
  --ok: #8fcbaa;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 28px 70px -46px rgba(0, 0, 0, 0.95);
  --shadow-card: 0 34px 90px -55px rgba(0, 0, 0, 1);
  --font-sans: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-display: "Palatino Linotype", Palatino, Georgia, "Songti SC", "STSong",
    "Noto Serif SC", "Noto Serif CJK SC", SimSun, serif;
  --font-mono: ui-monospace, "Cascadia Code", Consolas, "SF Mono", "Liberation Mono", monospace;
  --header-h: 72px;
  --max-width: 1240px;
  --accent: #c9a24a;
  --accent-soft: #e8cf8f;
  --accent-deep: #a9822f;
  --accent-line: rgba(201, 162, 74, 0.38);
  --accent-tint: rgba(201, 162, 74, 0.1);
  --accent-glow: rgba(201, 162, 74, 0.3);
  --ease-out: cubic-bezier(0.22, 0.68, 0.2, 1);
}

.accent-gold {
  --accent: #c9a24a;
  --accent-soft: #e8cf8f;
  --accent-deep: #a9822f;
  --accent-line: rgba(201, 162, 74, 0.4);
  --accent-tint: rgba(201, 162, 74, 0.1);
  --accent-glow: rgba(201, 162, 74, 0.3);
}

.accent-cyan {
  --accent: #6ea8b8;
  --accent-soft: #b6dde6;
  --accent-deep: #4b8394;
  --accent-line: rgba(110, 168, 184, 0.4);
  --accent-tint: rgba(110, 168, 184, 0.1);
  --accent-glow: rgba(110, 168, 184, 0.3);
}

/* -------------------------------- 基础层 -------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body[data-view="play"] {
  height: 100dvh;
  overflow: hidden;
}

h1, h2, h3, p, dl, dd, dt, ol, ul {
  margin: 0;
}

ol, ul {
  padding: 0;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: rgba(201, 162, 74, 0.28);
  color: #fff8e8;
}

:focus-visible {
  outline: 1px solid rgba(232, 207, 143, 0.75);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(214, 225, 238, 0.14);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(214, 225, 238, 0.24);
  background-clip: padding-box;
}

.mono {
  font-family: var(--font-mono);
}

.icon {
  flex: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: #10161f;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 13px;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.noscript {
  margin: 40px auto;
  max-width: 560px;
  padding: 20px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(224, 139, 127, 0.08);
  color: var(--danger);
  text-align: center;
}

/* ------------------------------- 背景装饰 ------------------------------- */
.bg-art {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(900px 560px at 10% -10%, rgba(201, 162, 74, 0.12), transparent 62%),
    radial-gradient(1000px 640px at 94% 2%, rgba(110, 168, 184, 0.12), transparent 60%),
    radial-gradient(900px 620px at 50% 116%, rgba(76, 104, 138, 0.16), transparent 68%),
    linear-gradient(180deg, #070b10 0%, #05080c 42%, #060a10 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(210, 226, 240, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 226, 240, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 26%, #000 18%, transparent 78%);
  mask-image: radial-gradient(ellipse 78% 62% at 50% 26%, #000 18%, transparent 78%);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  animation: orb-drift 26s ease-in-out infinite alternate;
}

.bg-orb--gold {
  width: 460px;
  height: 460px;
  left: -160px;
  top: 6%;
  background: radial-gradient(circle, rgba(201, 162, 74, 0.6), transparent 70%);
}

.bg-orb--cyan {
  width: 420px;
  height: 420px;
  right: -140px;
  top: 20%;
  background: radial-gradient(circle, rgba(110, 168, 184, 0.55), transparent 70%);
  animation-delay: -9s;
}

.bg-watermark {
  position: absolute;
  top: 16vh;
  right: 2.5vw;
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: clamp(180px, 24vw, 360px);
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(214, 225, 238, 0.02);
  -webkit-text-stroke: 1px rgba(214, 225, 238, 0.045);
  user-select: none;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 40%, rgba(3, 5, 8, 0.55) 100%),
    linear-gradient(180deg, transparent 60%, rgba(3, 5, 8, 0.65) 100%);
}

/* -------------------------------- 顶栏 --------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 9, 14, 0.92), rgba(6, 9, 14, 0.66));
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: none;
  padding: 6px 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 74, 0.28);
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(201, 162, 74, 0.16), transparent 60%),
    rgba(10, 15, 21, 0.85);
  box-shadow: inset 0 0 22px rgba(201, 162, 74, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.brand:hover .brand__mark {
  border-color: rgba(201, 162, 74, 0.5);
  box-shadow: inset 0 0 26px rgba(201, 162, 74, 0.16), 0 0 26px -12px rgba(201, 162, 74, 0.5);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #f2ead8;
}

.brand__text span {
  font-size: 9.5px;
  letter-spacing: 0.34em;
  color: var(--text-faint);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__link {
  position: relative;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.nav__link.is-active {
  color: var(--gold-soft);
  background: rgba(201, 162, 74, 0.09);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, 0.24);
}

.account-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 96px;
  flex: none;
}

.account-slot__loading {
  display: block;
  width: 92px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

.account-guest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.account-guest:hover {
  border-color: rgba(201, 162, 74, 0.45);
  background: rgba(201, 162, 74, 0.08);
  color: var(--gold-soft);
}

.account-guest__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201, 162, 74, 0.8);
}

.account-chip-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.account-chip:hover {
  border-color: rgba(201, 162, 74, 0.45);
  background: rgba(201, 162, 74, 0.07);
}

.account-chip__avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(232, 207, 143, 0.28), rgba(110, 168, 184, 0.24));
  border: 1px solid rgba(232, 207, 143, 0.34);
  font-family: var(--font-display);
  font-size: 11px;
  color: #f4e8c8;
}

.account-chip__id {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.account-chip__badge {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 74, 0.28);
  background: rgba(201, 162, 74, 0.08);
  color: var(--gold-soft);
  font-size: 9.5px;
  letter-spacing: 0.12em;
}

.account-chip__data {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.account-chip__data:hover {
  color: var(--gold-soft);
  border-color: rgba(201, 162, 74, 0.4);
  background: rgba(201, 162, 74, 0.08);
}

/* --------------------------- 服务降级提示条 --------------------------- */
.service-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--max-width);
  margin: 16px auto 0;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(224, 177, 111, 0.26);
  background: rgba(224, 177, 111, 0.07);
  color: #d9c39c;
  font-size: 12.5px;
  line-height: 1.6;
}

.service-banner[hidden] {
  display: none;
}

.service-banner::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e0b16f;
  box-shadow: 0 0 10px rgba(224, 177, 111, 0.8);
}

.service-banner svg {
  display: none;
}

/* -------------------------------- 主区域 -------------------------------- */
.main {
  min-height: calc(100dvh - var(--header-h) - 140px);
  outline: none;
}

.main--play {
  min-height: 0;
}

.page {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: rgba(232, 207, 143, 0.72);
  text-transform: uppercase;
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: #f3efe6;
}

.panel-sub {
  margin-top: 14px;
  max-width: 60ch;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.85;
}

.inline-warn {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(224, 177, 111, 0.24);
  background: rgba(224, 177, 111, 0.06);
  color: #d9c39c;
  font-size: 12.5px;
  line-height: 1.65;
}

.inline-warn span[aria-hidden] {
  color: #e0b16f;
  font-size: 9px;
  line-height: 2.2;
}

/* -------------------------------- 按钮 --------------------------------- */
.btn {
  --btn-accent: var(--accent, #c9a24a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease,
    background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none !important;
}

.btn--accent {
  background: linear-gradient(135deg, var(--accent-soft, #e8cf8f) 0%, var(--accent, #c9a24a) 54%, var(--accent-deep, #a9822f) 100%);
  color: #15110a;
  font-weight: 600;
  box-shadow: 0 18px 40px -22px var(--accent-glow, rgba(201, 162, 74, 0.6));
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px -22px var(--accent-glow, rgba(201, 162, 74, 0.72));
}

.btn--gold {
  --accent: #c9a24a;
  --accent-soft: #e8cf8f;
  --accent-deep: #a9822f;
  --accent-glow: rgba(201, 162, 74, 0.55);
}

.btn--cyan {
  --accent: #6ea8b8;
  --accent-soft: #b6dde6;
  --accent-deep: #4b8394;
  --accent-glow: rgba(110, 168, 184, 0.5);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 74, 0.4);
  background: rgba(201, 162, 74, 0.08);
  color: #f2e7ce;
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 12.5px;
}

.btn.is-busy .icon {
  animation: spin 1s linear infinite;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover,
.icon-btn.is-active {
  color: var(--gold-soft);
  border-color: rgba(201, 162, 74, 0.4);
  background: rgba(201, 162, 74, 0.08);
}

/* --------------------------------- 首页 --------------------------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  padding: clamp(52px, 7vw, 100px) 0 clamp(34px, 4.5vw, 60px);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.36em;
  color: rgba(232, 207, 143, 0.75);
}

.hero__eyebrow-line {
  display: inline-block;
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 162, 74, 0.9), transparent);
}

.hero__title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 1.06;
  letter-spacing: 0.015em;
  color: #f4f0e7;
  text-wrap: balance;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(112deg, #f4e4b6 0%, #c9a24a 46%, #9ec5cf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.hero__sub {
  margin-top: 24px;
  max-width: 56ch;
  color: var(--text-dim);
  font-size: clamp(14px, 1.1vw, 15.5px);
  line-height: 1.95;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 3.4vw, 54px);
  margin-top: clamp(38px, 5vw, 58px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero__meta-item dt {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.hero__meta-item dd {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 23px);
  letter-spacing: 0.03em;
  color: #eadfcb;
}

.hero__meta-item .hero__meta-mono {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.1vw, 14px);
  color: var(--cyan-soft);
}

.hero__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  justify-self: center;
  opacity: 0.9;
}

.hero__ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: clamp(170px, 15vw, 214px);
  height: clamp(170px, 15vw, 214px);
  border-radius: 50%;
  border: 1px solid rgba(214, 225, 238, 0.12);
  background:
    radial-gradient(circle at 50% 42%, rgba(201, 162, 74, 0.14), transparent 62%),
    radial-gradient(circle at 60% 70%, rgba(110, 168, 184, 0.1), transparent 60%);
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  color: rgba(240, 225, 190, 0.7);
  letter-spacing: 0.1em;
  animation: ring-breathe 8s ease-in-out infinite;
}

.hero__ring::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed rgba(214, 225, 238, 0.14);
}

.hero__ring::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, transparent 0deg, rgba(201, 162, 74, 0.5) 40deg, transparent 90deg, transparent 200deg, rgba(110, 168, 184, 0.4) 250deg, transparent 300deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}

.hero__aside-line {
  width: 1px;
  height: 74px;
  background: linear-gradient(180deg, rgba(214, 225, 238, 0.24), transparent);
}

.hero__aside-text {
  font-size: 9px;
  letter-spacing: 0.34em;
  line-height: 2.1;
  text-align: center;
  color: var(--text-faint);
}

/* ------------------------------- 游戏目录 ------------------------------- */
.games-section {
  scroll-margin-top: calc(var(--header-h) + 24px);
  padding-top: clamp(16px, 2vw, 26px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(22px, 2.8vw, 32px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-faint);
}

.section-eyebrow span {
  color: rgba(201, 162, 74, 0.75);
}

.section-head h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: 0.05em;
  color: #f0eadf;
}

.section-note {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 70% at 50% 0%, var(--accent-tint), transparent 58%),
    linear-gradient(180deg, rgba(17, 23, 32, 0.72), rgba(8, 12, 18, 0.94));
  box-shadow: var(--shadow-card);
  isolation: isolate;
  transition: transform 0.45s var(--ease-out), border-color 0.4s ease, box-shadow 0.45s ease;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, var(--accent-line), transparent 32%, transparent 68%, var(--accent-line));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.4s ease;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(214, 225, 238, 0.16);
  box-shadow:
    0 46px 110px -60px rgba(0, 0, 0, 1),
    0 30px 80px -60px var(--accent-glow);
}

.game-card:hover::before,
.game-card:focus-visible::before {
  opacity: 1;
}

.game-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0f15;
}

.game-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  filter: saturate(0.92) contrast(1.03) brightness(0.94);
  transition: transform 1.1s var(--ease-out), filter 0.6s ease;
}

.game-card:hover .game-card__cover img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1.04) brightness(1);
}

.game-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.32) 0%, rgba(5, 8, 12, 0) 36%, rgba(8, 12, 18, 0.58) 74%, rgba(10, 14, 20, 0.98) 100%);
}

.game-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(64% 58% at 50% 108%, var(--accent-tint), transparent 70%);
  opacity: 0.9;
}

.game-card__version {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: rgba(7, 10, 15, 0.68);
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.game-card__status {
  position: absolute;
  bottom: 14px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(233, 238, 244, 0.76);
}

.game-card__status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.game-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
  padding: clamp(20px, 2.2vw, 28px) clamp(22px, 2.4vw, 30px) clamp(22px, 2.4vw, 30px);
}

.game-card__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.game-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(27px, 2.8vw, 34px);
  letter-spacing: 0.02em;
  color: #f5f0e6;
}

.game-card__genre {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}

.game-card__tagline {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.8;
}

.game-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.game-card__tags li {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  color: var(--text-faint);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.game-card__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}

.game-card__data-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-faint);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.game-card__data-link:hover {
  color: var(--accent-soft);
  border-bottom-color: var(--accent-line);
}

/* ------------------------------ 特性说明条 ------------------------------ */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(48px, 7vw, 92px);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--line);
}

.feature {
  display: flex;
  gap: 16px;
  padding: clamp(22px, 2.4vw, 30px);
  background: linear-gradient(180deg, rgba(13, 18, 25, 0.86), rgba(9, 13, 19, 0.92));
}

.feature__index {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent, var(--gold));
  opacity: 0.8;
  padding-top: 2px;
}

.feature__body h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #eee6d8;
}

.feature__body p {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-faint);
}

/* -------------------------------- 游戏页 -------------------------------- */
body[data-view="play"] .topbar,
body[data-view="play"] .footer,
body[data-view="play"] .service-banner,
body[data-view="play"] .skip-link {
  display: none;
}

.play-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: #04060a;
}

.play-shell:fullscreen {
  height: 100dvh;
  width: 100vw;
  background: #04060a;
}

.play-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  min-height: 52px;
  padding: 0 clamp(12px, 2vw, 22px);
  border-bottom: 1px solid rgba(214, 225, 238, 0.09);
  background:
    linear-gradient(180deg, rgba(9, 13, 19, 0.98), rgba(8, 11, 16, 0.94));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.play-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  opacity: 0.6;
}

.play-bar__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.play-bar__back:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.play-bar__divider {
  width: 1px;
  height: 18px;
  background: var(--line-strong);
}

.play-bar__title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.play-bar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  flex: none;
}

.play-bar__title strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #f1ebdf;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-bar__version {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.play-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: none;
}

.play-bar__account {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}

.play-account {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.play-account:hover {
  color: var(--gold-soft);
  border-color: rgba(201, 162, 74, 0.35);
}

.play-account--guest {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.play-account--muted {
  border-color: transparent;
  background: none;
  color: var(--text-faint);
}

.play-account__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent, #c9a24a);
  box-shadow: 0 0 8px var(--accent-glow);
}

.play-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #04060a;
}

.play-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #04060a;
}

.play-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(560px 380px at 50% 40%, var(--accent-tint), transparent 68%),
    #05080c;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.play-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-loading__spinner {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(214, 225, 238, 0.12);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

.play-loading__title {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.14em;
  color: #eee7d9;
}

.play-loading__hint {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  line-height: 1.7;
}

.play-loading__retry {
  margin-top: 16px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-tint);
  color: var(--accent-soft);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.play-loading__retry:hover {
  background: rgba(201, 162, 74, 0.16);
  border-color: var(--accent);
}

.play-loading__retry[hidden] {
  display: none;
}

/* -------------------------------- 账号页 -------------------------------- */
.account-page {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.82fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
  padding-top: clamp(40px, 6vw, 84px);
  padding-bottom: clamp(20px, 4vw, 48px);
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(201, 162, 74, 0.06), transparent 52%),
    linear-gradient(168deg, rgba(20, 27, 37, 0.76), rgba(8, 12, 18, 0.92));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-panel {
  padding: clamp(26px, 3.2vw, 44px);
}

.panel-head .eyebrow {
  margin-bottom: 2px;
}

.panel-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 72px 20px;
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.skeleton-spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(214, 225, 238, 0.12);
  border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}

.auth-form {
  margin-top: 30px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 9, 14, 0.72);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14.5px;
  letter-spacing: 0.02em;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-input::placeholder {
  color: var(--text-faint);
  font-size: 13.5px;
}

.form-input:hover {
  border-color: rgba(214, 225, 238, 0.26);
}

.form-input:focus {
  outline: none;
  border-color: rgba(201, 162, 74, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.12);
  background: rgba(7, 11, 17, 0.86);
}

.form-error {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(224, 139, 127, 0.28);
  background: rgba(224, 139, 127, 0.08);
  color: var(--danger);
  font-size: 12.5px;
  line-height: 1.65;
}

.form-error[hidden] {
  display: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--text-faint);
  font-size: 10.5px;
  letter-spacing: 0.24em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-note {
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 11.5px;
  line-height: 1.75;
}

.auth-aside {
  padding-top: clamp(6px, 1vw, 16px);
}

.auth-aside__title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 27px);
  letter-spacing: 0.03em;
  color: #f0e9dc;
}

.auth-steps {
  list-style: none;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.auth-steps li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(214, 225, 238, 0.06);
}

.auth-steps__index {
  flex: none;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(201, 162, 74, 0.85);
  padding-top: 3px;
}

.auth-steps h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ece4d6;
}

.auth-steps p {
  margin-top: 6px;
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.75;
}

.auth-aside__note {
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 1px solid rgba(201, 162, 74, 0.3);
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.75;
}

/* 已登录账号 */
.account-panel {
  padding: clamp(26px, 3.2vw, 44px);
}

.account-panel__title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.pill--ok {
  border-color: rgba(143, 203, 170, 0.3);
  background: rgba(143, 203, 170, 0.08);
  color: var(--ok);
}

.pill--warn {
  border-color: rgba(224, 177, 111, 0.32);
  background: rgba(224, 177, 111, 0.08);
  color: #dfc08e;
}

.pill--muted {
  color: var(--text-faint);
}

.meta-list {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(214, 225, 238, 0.055);
}

.meta-row dt {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  padding-top: 2px;
}

.meta-row dd {
  text-align: right;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.7;
  word-break: break-all;
}

.sso-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.7;
}

.sso-status::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-faint);
}

.sso-status.is-ok {
  color: var(--ok);
}

.sso-status.is-ok::before {
  background: var(--ok);
  box-shadow: 0 0 8px rgba(143, 203, 170, 0.65);
}

.account-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* --------------------------------- 数据页 -------------------------------- */
.data-page {
  padding-bottom: clamp(30px, 5vw, 60px);
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  padding: clamp(36px, 5.4vw, 68px) 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(22px, 2.8vw, 32px);
}

.page-title {
  margin-top: 10px;
}

.page-head__side {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}

.data-updated {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.data-account {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.data-account .mono {
  color: var(--text-dim);
}

.data-account a {
  color: rgba(232, 207, 143, 0.8);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.data-account a:hover {
  color: var(--gold-soft);
  border-bottom-color: rgba(201, 162, 74, 0.4);
}

.data-account__dot {
  opacity: 0.5;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.data-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(110% 50% at 100% 0%, var(--accent-tint), transparent 56%),
    linear-gradient(170deg, rgba(17, 23, 32, 0.74), rgba(8, 12, 18, 0.92));
  box-shadow: var(--shadow-soft);
}

.data-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.65;
}

.data-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.data-card__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.data-card__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid var(--accent-line);
  background: var(--accent-tint);
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--accent-soft);
}

.data-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(21px, 2vw, 25px);
  letter-spacing: 0.02em;
  color: #f2ece1;
  line-height: 1.2;
}

.data-card__sub {
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.data-card__error {
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid rgba(224, 139, 127, 0.24);
  background: rgba(224, 139, 127, 0.07);
  color: #e3a79d;
  font-size: 12px;
  line-height: 1.65;
}

.data-card__error--muted {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-faint);
}

.data-card__stats {
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 3.4vw, 40px);
  padding: 16px 0 20px;
  border-top: 1px solid rgba(214, 225, 238, 0.06);
  border-bottom: 1px solid rgba(214, 225, 238, 0.06);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat__label {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--text-faint);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(38px, 3.8vw, 54px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--accent-soft);
  font-variant-numeric: tabular-nums;
}

.stat--minor .stat__value {
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.15;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.stat__value--unknown {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.5;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.data-card__saves {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.data-saves__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.data-saves__head h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

.data-saves__hint {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.data-saves {
  min-height: 56px;
}

.save-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.save-item {
  display: flex;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(214, 225, 238, 0.055);
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.save-item:hover {
  border-color: rgba(214, 225, 238, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.save-item__tag {
  flex: none;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 7px;
  border: 1px solid var(--accent-line);
  background: var(--accent-tint);
  color: var(--accent-soft);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.save-item__tag--mono {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.01em;
}

.save-item__body {
  min-width: 0;
  flex: 1;
}

.save-item__summary {
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.save-item__branch {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.save-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.save-item__id {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.72;
}

.data-empty {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 20px;
  border: 1px dashed rgba(214, 225, 238, 0.14);
  border-radius: 12px;
  color: var(--text-faint);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-align: center;
}

.data-saves__more {
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.data-fatal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: clamp(34px, 5vw, 56px) 24px;
  text-align: center;
}

.data-fatal__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(224, 139, 127, 0.36);
  background: rgba(224, 139, 127, 0.08);
  color: var(--danger);
  font-family: var(--font-display);
  font-size: 17px;
}

.data-fatal h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.03em;
  color: #f0e9dc;
}

.data-fatal p {
  max-width: 52ch;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.8;
}

.data-fatal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* ------------------------------ 空态 / 404 ------------------------------ */
.empty-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: clamp(48px, 7vw, 88px) 26px;
  margin-top: clamp(36px, 6vw, 70px);
  text-align: center;
}

.empty-panel__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 6px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 74, 0.26);
  background: rgba(201, 162, 74, 0.07);
  color: var(--gold-soft);
}

.empty-panel__actions {
  margin-top: 14px;
}

.notfound {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - var(--header-h) - 180px);
  padding-top: clamp(40px, 7vw, 80px);
  padding-bottom: clamp(40px, 7vw, 80px);
}

.notfound__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 560px;
  width: 100%;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(201, 162, 74, 0.08), transparent 60%),
    linear-gradient(170deg, rgba(17, 23, 32, 0.7), rgba(8, 12, 18, 0.9));
}

.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(74px, 10vw, 120px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, rgba(232, 207, 143, 0.92), rgba(110, 168, 184, 0.65));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* -------------------------------- 加载态 -------------------------------- */
.boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52vh;
  color: var(--text-faint);
  font-size: 12.5px;
  letter-spacing: 0.16em;
}

.boot__spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(214, 225, 238, 0.12);
  border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}

.is-skeleton {
  pointer-events: none;
}

.skeleton-line {
  height: 13px;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

.skeleton-line--title {
  width: 46%;
  height: 24px;
}

.skeleton-line--stat {
  width: 34%;
  height: 44px;
  margin: 12px 0 6px;
}

.skeleton-line--wide {
  width: 100%;
  height: 40px;
  margin-top: 6px;
}

/* --------------------------------- 页脚 --------------------------------- */
.footer {
  margin-top: clamp(56px, 8vw, 110px);
  border-top: 1px solid var(--line);
  padding: 26px clamp(20px, 4vw, 40px) 38px;
  color: var(--text-faint);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  line-height: 1.8;
}

.footer__dot {
  opacity: 0.45;
  margin: 0 4px;
}

.footer__accent {
  color: rgba(232, 207, 143, 0.72);
}

/* -------------------------------- Toast -------------------------------- */
.toast-root {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(92vw, 440px);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  max-width: 100%;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(14, 20, 28, 0.94);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.6;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: toast-in 0.28s var(--ease-out);
  pointer-events: auto;
}

.toast--success {
  border-color: rgba(143, 203, 170, 0.34);
}

.toast--error {
  border-color: rgba(224, 139, 127, 0.38);
  color: #f0c3bb;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

/* ------------------------------- 动画定义 ------------------------------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: 180% 0;
  }
  100% {
    background-position: -80% 0;
  }
}

@keyframes orb-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(34px, 26px, 0) scale(1.08);
  }
}

@keyframes ring-breathe {
  0%, 100% {
    box-shadow: 0 0 60px -30px rgba(201, 162, 74, 0.35);
  }
  50% {
    box-shadow: 0 0 90px -24px rgba(201, 162, 74, 0.5);
  }
}

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

/* -------------------------------- 响应式 -------------------------------- */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
  }

  .hero__aside {
    transform: scale(0.88);
  }

  .game-card__heading {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 900px) {
  .account-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .auth-aside {
    padding-top: 0;
  }

  .data-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__aside {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: auto;
  }

  .topbar__inner {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .brand__text strong {
    font-size: 18px;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    gap: 2px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav__link {
    padding: 7px 12px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .account-slot {
    min-width: 0;
  }

  .account-chip__badge {
    display: none;
  }

  .account-chip__id {
    font-size: 10.5px;
  }

  .account-chip__data {
    width: 30px;
    height: 30px;
  }

  .hero {
    padding-top: clamp(38px, 9vw, 56px);
    padding-bottom: 28px;
  }

  .hero__title {
    margin-top: 20px;
  }

  .hero__sub {
    margin-top: 18px;
  }

  .hero__actions {
    margin-top: 26px;
  }

  .hero__meta {
    gap: 20px 30px;
    margin-top: 32px;
    padding-top: 20px;
  }

  .game-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .game-card__body {
    padding: 20px 20px 22px;
  }

  .game-card__actions {
    gap: 14px;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-top: clamp(30px, 8vw, 46px);
  }

  .page-head__side {
    width: 100%;
    justify-content: space-between;
  }

  .account-page {
    padding-top: clamp(30px, 8vw, 48px);
  }

  .auth-panel,
  .account-panel {
    padding: 24px 20px;
  }

  .meta-row {
    gap: 18px;
  }

  .data-card {
    padding: 20px 18px;
  }

  .data-card__stats {
    gap: 22px;
  }

  .stat__value {
    font-size: clamp(34px, 9vw, 44px);
  }

  .play-bar {
    gap: 8px;
    min-height: 48px;
    padding: 0 10px;
  }

  .play-bar__back span {
    display: none;
  }

  .play-bar__title strong {
    font-size: 13.5px;
  }

  .play-bar__version {
    display: none;
  }

  .play-bar__divider {
    display: none;
  }

  .play-bar__account {
    display: none;
  }

  .play-loading__title {
    font-size: 15px;
  }

  .footer {
    padding-bottom: 30px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14.5px;
  }

  .page {
    padding: 0 18px;
  }

  .hero__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }

  .hero__meta-item dd {
    font-size: 17px;
  }

  .hero__meta-item .hero__meta-mono {
    font-size: 11px;
  }

  .hero__actions .btn {
    flex: 1;
    padding-left: 16px;
    padding-right: 16px;
  }

  .game-card {
    border-radius: 20px;
  }

  .game-card__version {
    top: 12px;
    right: 12px;
  }

  .game-card__status {
    bottom: 11px;
    left: 14px;
  }

  .game-card__title {
    font-size: 26px;
  }

  .game-card__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .game-card__actions .btn {
    width: 100%;
  }

  .game-card__data-link {
    justify-content: center;
  }

  .page-head__side {
    flex-wrap: wrap;
    gap: 10px;
  }

  .data-card__stats {
    gap: 18px;
    flex-wrap: wrap;
  }

  .data-card__identity {
    gap: 11px;
  }

  .data-card__mark {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 11px;
  }

  .save-item {
    padding: 10px 11px;
    gap: 9px;
  }

  .save-item__tag {
    font-size: 9px;
    padding: 3px 7px;
  }

  .meta-row {
    flex-direction: column;
    gap: 4px;
  }

  .meta-row dd {
    text-align: left;
    font-size: 12.5px;
  }

  .notfound__inner {
    padding: 26px 20px;
  }

  .toast-root {
    bottom: 18px;
  }
}

@media (max-width: 375px) {
  .page {
    padding: 0 15px;
  }

  .hero__title {
    font-size: clamp(38px, 11.4vw, 46px);
  }

  .hero__eyebrow {
    letter-spacing: 0.26em;
    font-size: 9.5px;
  }

  .hero__sub {
    font-size: 13.5px;
  }

  .brand__text span {
    letter-spacing: 0.24em;
  }

  .account-guest {
    padding: 8px 12px;
    font-size: 12px;
  }

  .account-chip__id {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .game-card__cover {
    aspect-ratio: 16 / 10;
  }

  .data-card {
    padding: 18px 15px;
  }

  .play-loading__hint {
    font-size: 11px;
  }
}

/* ------------------------- 降低动态效果偏好支持 ------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .game-card:hover {
    transform: none;
  }
}
