/* 金牛游戏中心 · App Store 风格 */
:root {
  --bg: #070a12;
  --bg-2: #0c1220;
  --surface: #121a2b;
  --surface-2: #1a2438;
  --ink: #f2f5fa;
  --ink-2: #a8b3c7;
  --mute: #6b7690;
  --gold: #c2b59b;
  --gold-2: #e8d5a3;
  --gold-3: #f7e7b8;
  --cyan: #4de1ff;
  --magenta: #ff4d9a;
  --lime: #7dff8a;
  --danger: #ff5c6c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 10px 40px rgba(194, 181, 155, 0.22);
  --nav-h: 64px;
  --max: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  /* 画布底色铺满整窗：宽屏右侧不留灰边 */
  background: #070a12;
}
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(194, 181, 155, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(77, 225, 255, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* 宽屏自适应：内容上限随视口放大，不再死锁 1180 */
@media (min-width: 1440px) { :root { --max: 1320px; } }
@media (min-width: 1780px) { :root { --max: 1560px; } }
@media (min-width: 2160px) { :root { --max: 1800px; } }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.gnav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(7, 10, 18, 0.72);
  border-bottom: 1px solid rgba(194, 181, 155, 0.12);
}
.gnav-inner {
  max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 18px;
}
.gnav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; flex-shrink: 0; }
.gnav-logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, #8a7a58);
  display: grid; place-items: center; box-shadow: var(--shadow-gold);
  font-size: 16px; color: #1a1408;
}
.gnav-brand span small { display: block; font-size: 10px; font-weight: 500; color: var(--mute); letter-spacing: 0.12em; }
.gnav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.gnav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: 0.2s ease; }
.gnav-links a:hover, .gnav-links a.is-active {
  color: #1a1408; background: linear-gradient(135deg, var(--gold-2), var(--gold));
}
.gnav-actions { display: flex; align-items: center; gap: 10px; }
.btn-back {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(194, 181, 155, 0.28); color: var(--gold-2); font-size: 13px; transition: 0.2s ease;
}
.btn-back:hover { background: rgba(194, 181, 155, 0.12); border-color: var(--gold); }
.hero { max-width: var(--max); margin: 28px auto 0; padding: 0 20px; position: relative; }
.hero-card {
  position: relative; overflow: hidden; border-radius: 28px; min-height: 0;
  background:
    linear-gradient(120deg, rgba(12, 18, 32, 0.2), rgba(12, 18, 32, 0.75)),
    radial-gradient(800px 400px at 80% 20%, rgba(77, 225, 255, 0.18), transparent 60%),
    radial-gradient(600px 360px at 15% 80%, rgba(194, 181, 155, 0.28), transparent 55%),
    linear-gradient(145deg, #152038, #0a1020 55%, #1c1530);
  border: 1px solid rgba(194, 181, 155, 0.18);
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.15fr 0.85fr;
}

/* 旧半高硬切遮罩已移除，全幅遮罩见 .gc-bleed */
.hero-copy { z-index: 3; }
.hero-badge { z-index: 5; }
.gc-hero-ctrl { z-index: 6; }
.hero-video-wrap .hero-video-fade,
.hero-video-wrap .hero-video-text-shield { z-index: 4; }

.hero-copy {
  padding: 48px 40px; display: flex; flex-direction: column; justify-content: center;
  gap: 16px; position: relative; z-index: 2;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(194, 181, 155, 0.14); border: 1px solid rgba(194, 181, 155, 0.28);
  color: var(--gold-2); font-size: 12px; letter-spacing: 0.08em;
}
.hero-kicker i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 10px var(--lime); animation: pulse 1.6s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.55;transform:scale(.85)} }
.hero-copy h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: 0.02em; }
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-3), var(--gold), #fff2c8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.75; max-width: 460px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  color: var(--ink-2); font-size: 12px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-play {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-3), var(--gold) 50%, #b09a6c);
  color: #1a1408; font-weight: 700; font-size: 15px; box-shadow: var(--shadow-gold);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-play:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 46px rgba(194,181,155,.35); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px;
  border: 1px solid rgba(194,181,155,.3); color: var(--gold-2); font-size: 14px; transition: .2s ease;
}
.btn-ghost:hover { background: rgba(194,181,155,.12); }
.hero-meta { display: flex; gap: 22px; margin-top: 8px; color: var(--mute); font-size: 12px; }
.hero-meta strong { display: block; color: var(--ink); font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.hero-art {
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start; /* 不随左栏拉高，视频区保持 16:9 实高 */
}
.hero-art canvas { width: 100%; height: 100%; display: block; }
.hero-badge {
  position: absolute; right: 22px; top: 22px; padding: 8px 12px; border-radius: 12px;
  background: rgba(7,10,18,.55); border: 1px solid rgba(194,181,155,.3);
  backdrop-filter: blur(10px); font-size: 12px; color: var(--gold-2); z-index: 2;
}
.section { max-width: var(--max); margin: 0 auto; padding: 48px 20px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 21px; position: relative; padding-left: 16px; }
.section-head::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px;
  border-radius: 99px; background: linear-gradient(180deg, var(--gold-3), var(--gold));
}
.section-head h2 { margin: 0; font-size: 28px; letter-spacing: .04em; font-weight: 750; }
.section-head p { margin: 8px 0 0; color: var(--mute); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04); color: var(--ink-2); font-size: 13px; font-weight: 500;
  transition: .2s ease; letter-spacing: .02em;
}
.chip:hover { border-color: rgba(194,181,155,.45); color: var(--gold-2); background: rgba(194,181,155,.08); }
.chip.is-active {
  background: linear-gradient(135deg, var(--gold-3), var(--gold));
  color: #1a1408; border-color: transparent; font-weight: 650;
  box-shadow: 0 6px 18px rgba(194,181,155,.28);
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 21px; }
.card {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.022));
  border: 1px solid rgba(255,255,255,.08); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; cursor: pointer;
}
.card:hover {
  transform: translateY(-6px); border-color: rgba(194,181,155,.45);
  box-shadow: 0 18px 50px rgba(0,0,0,.4), 0 0 0 1px rgba(194,181,155,.12);
}
.card.is-featured { border-color: rgba(194,181,155,.35); box-shadow: 0 12px 40px rgba(194,181,155,.12); }
.card-cover { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.card-cover .cover-art { width: 100%; height: 100%; display: block; }
.card-cover .cover-fallback {
  width: 100%; height: 100%; display: grid; place-items: center; font-size: 42px;
  background: linear-gradient(145deg, var(--cover-a, #1b2740), var(--cover-b, #0b1220));
}
.card-cover .glow {
  position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(180deg, transparent, rgba(7,10,18,.88)); pointer-events: none;
}
.card-badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: rgba(7,10,18,.6); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px);
}
.card-badge.hot { background: linear-gradient(135deg, #ff7a4d, #ff4d6d); border-color: transparent; color: #fff; }
.card-badge.new { background: linear-gradient(135deg, var(--cyan), #2f8cff); border-color: transparent; color: #041018; }
.card-badge.soon { background: rgba(255,255,255,.1); color: var(--ink-2); }
/* 2026-11-06：公测金色 / 未发布年份灰蓝（与排行榜页签徽章同风格） */
.card-badge.launch { background: linear-gradient(135deg, #f7e7b8, #c2b59b); border-color: rgba(194,181,155,.55); color: #1a1408; }
.card-badge.year { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #b7c3d9; }
.card-body { padding: 14px 14px 16px; }
.card-body h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.card-body p { margin: 0; color: var(--mute); font-size: 12px; line-height: 1.5; min-height: 36px; }
.card-foot { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-cat { padding: 4px 8px; border-radius: 8px; background: rgba(194,181,155,.1); color: var(--gold-2); font-size: 11px; }
.card-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-2); font-size: 12px; font-weight: 600; }
.card-go {
  display: none; width: 32px; height: 32px; border-radius: 50%; place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1408; font-size: 14px; font-weight: 700;
}
.card:hover .card-go, .card.is-featured .card-go { display: grid; }
/* ── 开发中（soon / 不可玩）卡片：整体弱化，与可玩卡明确区分 ──
   调暗 + 去饱和滤镜 + 降透明度；封面叠加变暗遮罩；无悬停反馈；默认光标。
   点击仍保留 toast 提示「敬请期待」（给用户明确反馈，而非无响应）。 */
.card-badge { z-index: 2; } /* 徽章悬于遮罩之上，保证「预热/敬请期待」始终可读 */
.card.is-disabled {
  opacity: .55;
  cursor: default;
  filter: grayscale(.45) brightness(.62) saturate(.55);
}
.card.is-disabled:hover {
  transform: none; box-shadow: none; border-color: rgba(255,255,255,.07);
  filter: grayscale(.45) brightness(.62) saturate(.55); /* 悬停时不恢复色彩，维持弱化态 */
}
.card.is-disabled:active { transform: none; }
.card.is-disabled .card-cover::after { /* 封面变暗遮罩（徽章之下） */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,10,18,.38), rgba(7,10,18,.7));
}
.card.is-disabled .card-go { display: none !important; } /* 不出现 ▶ 进入按钮 */
/* ── 开发中预告（preview）卡片：中间亮度层 ──
   比可玩卡暗、比「无法游玩」卡亮：轻去饱和 + 中度压暗 + 浅遮罩；
   仍可点击进入（playable 不变），保留悬停与 ▶ 反馈。 */
.card.is-preview {
  opacity: .8;
  filter: grayscale(.22) brightness(.8) saturate(.72);
}
.card.is-preview .card-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,10,18,.18), rgba(7,10,18,.42));
}
.card.is-preview:hover {
  opacity: .88; /* 悬停轻微提亮，保持可进入暗示 */
  transform: translateY(-4px); /* 弱于可玩卡的 -6px */
}
/* ═══ 游戏详情浮层 ═══ */
.gmodal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.gmodal[hidden] { display: none; }
.gmodal-mask { position: absolute; inset: 0; background: rgba(4, 6, 12, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: gmask-in .25s ease; }
@keyframes gmask-in { from { opacity: 0; } }
.gmodal-card {
  position: relative; width: min(560px, 100%); max-height: min(86vh, 720px); overflow: auto;
  border-radius: 20px; border: 1px solid rgba(194, 181, 155, .22);
  background: linear-gradient(180deg, rgba(22, 27, 40, .98), rgba(12, 16, 26, .98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  animation: gcard-in .3s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes gcard-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.gmodal-x {
  position: absolute; right: 12px; top: 12px; z-index: 3; width: 32px; height: 32px;
  border-radius: 50%; display: grid; place-items: center; font-size: 17px; cursor: pointer;
  color: #e8d5a3; background: rgba(7, 10, 18, .6); border: 1px solid rgba(255, 255, 255, .14);
  transition: .2s ease;
}
.gmodal-x:hover { background: rgba(7, 10, 18, .85); transform: rotate(90deg); }
.gmodal-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.gmodal-cover .cover-art { width: 100%; height: 100%; display: block; }
.gmodal-cover .glow { position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(180deg, transparent, rgba(12, 16, 26, .95)); pointer-events: none; }
.gmodal-cover .card-badge { top: 14px; left: 14px; }
.gmodal-body { padding: 18px 20px 22px; }
.gmodal-body h3 { margin: 0 0 10px; font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.gmodal-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.gmodal-state { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.gmodal-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gmodal-state.st-playable { color: #4de1a0; background: rgba(77, 225, 160, .1); }
.gmodal-state.st-preview { color: #f0c060; background: rgba(240, 192, 96, .1); }
.gmodal-state.st-soon { color: #7a8496; background: rgba(122, 132, 150, .12); }
.gmodal-body p { margin: 0 0 18px; color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.gmodal-actions { display: flex; gap: 10px; }
.btn-play {
  flex: 1; padding: 12px 20px; border-radius: 12px; border: none; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 750; letter-spacing: .04em;
  color: #1a1408; background: linear-gradient(135deg, var(--gold-3), var(--gold));
  box-shadow: 0 8px 24px rgba(194, 181, 155, .3); transition: .2s ease;
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(194, 181, 155, .4); }
.btn-play:active { transform: none; }
.btn-play:disabled { cursor: default; filter: grayscale(.5) brightness(.75); box-shadow: none; transform: none; }
@media (max-width: 560px) {
  .gmodal { padding: 0; align-items: end; }
  .gmodal-card { width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0; border-bottom: none; animation: gsheet-in .32s cubic-bezier(.2, .9, .3, 1.1); }
  @keyframes gsheet-in { from { transform: translateY(60%); opacity: .4; } }
}

/* ═══ 筛选工具栏（吸顶）+ 类型分组 ═══ */
.searchbox { position: relative; display: flex; align-items: center; min-width: 200px; }
.sb-ico { position: absolute; left: 12px; color: var(--mute); pointer-events: none; }
.searchbox input {
  width: 100%; padding: 9px 32px 9px 34px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05);
  color: var(--ink); font-size: 13px; font-family: inherit; outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.searchbox input::placeholder { color: var(--mute); }
.searchbox input:focus {
  border-color: rgba(194, 181, 155, .55); background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 3px rgba(194, 181, 155, .12);
}
.searchbox input::-webkit-search-cancel-button { display: none; }
.sb-clear {
  position: absolute; right: 8px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; line-height: 1;
  color: var(--mute); background: rgba(255, 255, 255, .08); cursor: pointer; transition: .2s ease;
}
.sb-clear:hover { color: var(--ink); background: rgba(255, 255, 255, .16); }
.grid-empty {
  padding: 48px 20px; text-align: center; color: var(--mute); font-size: 14px;
  border: 1px dashed rgba(255, 255, 255, .12); border-radius: var(--radius);
}
@media (max-width: 720px) {
  .searchbox { min-width: 100%; }
}

.toolbar {
  position: sticky; top: var(--nav-h); z-index: 40;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 10px 14px; margin-top: 16px;
  background: rgba(9, 12, 20, .84);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}
.toolbar .chips { margin-bottom: 0; }
.toolbar > .chips:not(.chips-status) { flex-basis: 100%; } /* 类型 chips 独立成行：搜索+状态在上、类型在下 */
.chip-n {
  margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 700; font-style: normal;
  color: var(--mute); background: rgba(255, 255, 255, .07);
}
.chip.is-active .chip-n { color: #1a1408; background: rgba(26, 20, 8, .18); }
/* 状态筛选：一体式分段控件（与类型 pills 明显区分）——与搜索框同行 */
.chips-status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 999px;
}
.chip-st { font-size: 12px; padding: 6px 13px; border: none; background: transparent; }
.chip-st.is-active {
  background: linear-gradient(135deg, var(--gold-3), var(--gold));
  color: #1a1408; font-weight: 650;
  box-shadow: 0 2px 10px rgba(194, 181, 155, .3);
}
.chip-st.is-active::before { background: #1a1408; box-shadow: none; }
.chip-st::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-right: 6px; background: var(--mute); vertical-align: 1px; transition: .2s ease;
}
.chip-st[data-status="playable"]::before { background: #4de1a0; box-shadow: 0 0 6px rgba(77, 225, 160, .6); }
.chip-st[data-status="preview"]::before { background: #f0c060; box-shadow: 0 0 6px rgba(240, 192, 96, .5); }
.chip-st[data-status="soon"]::before { background: #7a8496; }

.cat-group { margin-top: 28px; }
.cat-group:first-child { margin-top: 18px; }
.cat-group-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  position: relative; padding-left: 14px;
}
.cat-group-head::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px;
  border-radius: 99px; background: linear-gradient(180deg, var(--gold-3), var(--gold));
}
.cat-group-head h3 { margin: 0; font-size: 19px; font-weight: 750; letter-spacing: .03em; }
.cat-n {
  font-size: 11px; font-weight: 700; color: var(--gold-2);
  background: rgba(194, 181, 155, .12); border: 1px solid rgba(194, 181, 155, .25);
  padding: 2px 9px; border-radius: 999px;
}

/* ═══ 卡片入场动画（stagger）+ 封面光泽扫过 ═══ */
.card { animation: card-in .55s ease backwards; animation-delay: var(--d, 0ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.no-anim .card { animation: none; }
.grid-empty { animation: none; }
.card-cover::before { /* 光泽斜扫（hover 触发，遮罩层之下） */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .1) 50%, transparent 60%);
  transform: translateX(-130%);
}
.card:hover .card-cover::before { transition: transform .85s ease; transform: translateX(130%); }
@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .card-cover::before { display: none; }
}

/* 卡片悬停反馈细化：封面轻缩放 + 进入按钮弹出 */
.card .cover-art { transition: transform .45s ease; will-change: transform; }
.card:hover .cover-art { transform: scale(1.05); }
.card .card-go { transition: transform .2s ease, opacity .2s ease; }
.card:hover .card-go { animation: cardgo-in .22s ease; }
@keyframes cardgo-in { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 720px) {
  .toolbar { top: 0; gap: 8px; padding: 8px 10px; border-radius: 12px; }
  .toolbar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; -webkit-overflow-scrolling: touch; }
  .toolbar .chip { flex-shrink: 0; white-space: nowrap; }
  .toolbar .chips::-webkit-scrollbar { display: none; }
  .chips-status { margin-left: 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 13px; }
  .cat-group { margin-top: 20px; }
  .cat-group-head h3 { font-size: 17px; }
}

/* 黄金比例栏宽 1.618 : 1 */
.rail { display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); gap: 21px; }
.panel {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  padding: 28px 24px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
}
.panel > h3 {
  margin: 0 0 16px; font-size: 18px; font-weight: 750; letter-spacing: .06em;
  color: var(--ink); position: relative; padding-bottom: 12px;
}
.panel > h3::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px;
  background: linear-gradient(90deg, var(--gold-3), rgba(194,181,155,.15)); border-radius: 2px;
}

/* —— 总分榜头部 —— */
.rank-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin: 0 0 21px; position: relative; padding-bottom: 16px;
}
.rank-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(194,181,155,.35), rgba(194,181,155,.06) 70%, transparent);
}
.rank-head h3 {
  margin: 0; font-size: 22px; font-weight: 750; letter-spacing: .05em;
  color: var(--ink); line-height: 1.25;
}
.rank-head-links { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.rank-head-links a {
  font-size: 12px; font-weight: 600; color: var(--gold-2);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(194,181,155,.22);
  background: rgba(194,181,155,.07);
  transition: background .2s ease, border-color .2s ease, color .2s ease; white-space: nowrap;
}
.rank-head-links a:hover {
  background: rgba(194,181,155,.16); border-color: rgba(194,181,155,.5); color: var(--gold-3);
}

/* 筛选：胶囊按钮 + 双列宫格菜单（无滚动条） */
.rank-filter { position: relative; margin: 0 0 21px; }
.rank-filter-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 12px;
  border: 1px solid rgba(194,181,155,.38);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  color: var(--gold-3); font-size: 14px; font-weight: 650;
  letter-spacing: .02em;
  box-shadow: 0 6px 18px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.rank-filter-btn:hover {
  border-color: rgba(232,213,163,.65);
  box-shadow: 0 8px 22px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
}
.rank-filter-btn:active { transform: translateY(1px); }
.rank-filter-btn[aria-expanded="true"] {
  border-color: var(--gold-2);
  background: linear-gradient(180deg, rgba(194,181,155,.2), rgba(194,181,155,.1));
}
.rank-filter-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--mute);
  text-transform: none; padding-right: 8px; border-right: 1px solid rgba(194,181,155,.25);
}
.rank-filter-label { color: var(--gold-3); }
.rank-filter-chev { opacity: .75; transition: transform .2s ease; color: var(--gold-2); }
.rank-filter-btn[aria-expanded="true"] .rank-filter-chev { transform: rotate(180deg); }

.rank-filter-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  width: min(340px, calc(100vw - 48px));
  padding: 12px;
  border-radius: 16px;
  /* 纯色不透明，杜绝下层榜单透出 */
  background: #141c2f;
  border: 1px solid rgba(194,181,155,.38);
  box-shadow:
    0 24px 56px rgba(0,0,0,.6),
    0 0 0 1px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}
.rank-filter-menu[hidden] { display: none !important; }
.rank-filter-opt {
  text-align: center; padding: 12px 10px; border-radius: 11px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
  line-height: 1.2;
}
.rank-filter-opt:hover {
  background: rgba(194,181,155,.14); color: var(--gold-3);
  border-color: rgba(194,181,155,.4);
}
.rank-filter-opt:active { transform: scale(.97); }
.rank-filter-opt.is-active {
  background: linear-gradient(135deg, var(--gold-3), var(--gold));
  color: #1a1408; border-color: transparent; font-weight: 750;
  box-shadow: 0 6px 16px rgba(194,181,155,.3);
}

/* 我的总分 */
.rank-my {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 21px; padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(194,181,155,.16), rgba(194,181,155,.05) 60%, rgba(77,225,255,.06));
  border: 1px solid rgba(194,181,155,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.rank-my[hidden] { display: none !important; }
.rank-my .rk {
  flex-shrink: 0; min-width: 40px; height: 40px; padding: 0 8px;
  border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-3), var(--gold));
  color: #1a1408; font-size: 14px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(194,181,155,.3);
}
.rank-my .lbl { font-size: 13px; color: var(--ink-2); letter-spacing: .04em; }
.rank-my .val {
  font-size: 30px; font-weight: 800; color: var(--gold-3);
  font-variant-numeric: tabular-nums; line-height: 1.05; letter-spacing: .01em;
}
.rank-my .tag {
  margin-left: auto; font-size: 12px; color: var(--mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42%;
}

.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  display: flex; align-items: center; gap: 16px; padding: 13px 16px; border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.05);
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.rank-item:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(194,181,155,.28);
  transform: translateX(2px);
}
.rank-item:nth-child(-n+3) { border-color: rgba(194,181,155,.16); }
.rank-no {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; background: rgba(194,181,155,.12); color: var(--gold-2);
  flex-shrink: 0;
}
.rank-item:nth-child(1) .rank-no { background: linear-gradient(135deg, #ffd76a, #e8a23a); color: #2a1c00; box-shadow: 0 4px 12px rgba(232,162,58,.35); }
.rank-item:nth-child(2) .rank-no { background: linear-gradient(135deg, #d7dee8, #9aa8bb); color: #1a2230; }
.rank-item:nth-child(3) .rank-no { background: linear-gradient(135deg, #e0b089, #b87a4c); color: #2a1408; }
.rank-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rank-meta strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.rank-meta span { color: var(--mute); font-size: 12px; }
.rank-score {
  color: var(--gold-2); font-variant-numeric: tabular-nums;
  font-weight: 750; font-size: 18px; letter-spacing: .01em;
}

/* 游玩提示 */
.tip-list { display: flex; flex-direction: column; gap: 16px; }
.tip { display: flex; gap: 12px; color: var(--ink-2); font-size: 13.5px; line-height: 1.7; }
.tip i {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; flex-shrink: 0;
  background: var(--gold-2); box-shadow: 0 0 10px rgba(194,181,155,.55);
}
.tip b { color: var(--gold-3); font-weight: 700; }

.gfooter {
  max-width: var(--max); margin: 56px auto 0; padding: 28px 20px 44px;
  border-top: 1px solid rgba(255,255,255,.06); color: var(--mute); font-size: 12px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
}
.gfooter a { color: var(--ink-2); }
.gfooter a:hover { color: var(--gold-2); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  padding: 12px 18px; border-radius: 999px; background: rgba(18,26,43,.95);
  border: 1px solid rgba(194,181,155,.3); color: var(--ink); font-size: 13px;
  opacity: 0; pointer-events: none; transition: .28s ease; z-index: 99; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 920px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; order: -1; }
  .hero-copy { padding: 28px 22px 32px; }
  .rail { grid-template-columns: 1fr; gap: 18px; }
  .rank-head { flex-wrap: wrap; gap: 10px 16px; }
  .gnav-links { display: none; }
}
@media (max-width: 560px) {
  .section { padding-top: 36px; }
  .section-head h2 { font-size: 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body h3 { font-size: 14px; }
  .card-body p { min-height: 0; }
  .hero-meta { gap: 14px; }
  .panel { padding: 21px 16px; }
  .rank-head h3 { font-size: 18px; }
  .rank-my { flex-wrap: wrap; gap: 10px 12px; }
  .rank-my .val { font-size: 24px; }
  .rank-my .tag { max-width: 100%; margin-left: 0; }
  .rank-item { padding: 12px 12px; gap: 12px; }
  .rank-score { font-size: 15px; }
  .rank-filter-menu { width: min(300px, calc(100vw - 40px)); padding: 10px; gap: 6px; }
  .rank-filter-opt { padding: 11px 8px; font-size: 12.5px; }
}

/* 宣传视频 · 强制 16:9 整幅呈现；底部渐变遮罩保证顶层文案/按钮可读 */
.hero-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  border-radius: inherit;
  background: #061018;
}
.hero-video-wrap video,
.gc-hero-video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: #061018;
}
/* 底部渐变遮罩：压住视频下沿，托住文字与按钮 */
.hero-video-fade {
  position: absolute; inset: 0; pointer-events: none;
  z-index: 4;
  background:
    linear-gradient(180deg, rgba(8,12,22,0.35) 0%, transparent 28%),
    linear-gradient(0deg,
      rgba(6,8,14,0.92) 0%,
      rgba(6,8,14,0.72) 22%,
      rgba(6,8,14,0.35) 48%,
      transparent 72%),
    linear-gradient(90deg, rgba(8,12,22,0.45), transparent 40%);
}

/* 游戏中心 · 用户菜单 */
.user-box { position: relative; margin-right: 10px; }
.user-trigger {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(232,200,120,0.12);
  border: 1px solid rgba(232,200,120,0.28);
  color: var(--ink); cursor: pointer;
}
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; border: 1px solid rgba(232,200,120,0.4);
  background: #1a2438;
}
.user-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.user-name { font-size: 12px; font-weight: 700; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pts { font-size: 11px; color: var(--gold-2); }
.user-pts i { font-style: normal; opacity: .75; margin-right: 4px; }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 220px; padding: 8px;
  border-radius: 14px;
  background: rgba(12, 18, 28, 0.96);
  border: 1px solid rgba(232,200,120,0.22);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  z-index: 50;
}
.user-menu[hidden] { display: none !important; }
.um-head {
  padding: 12px 12px 10px; margin-bottom: 6px;
  border-radius: 10px;
  background: rgba(232,200,120,0.1);
}
.um-bal-label { font-size: 11px; color: var(--ink-2); }
.um-bal { font-size: 22px; font-weight: 800; color: var(--gold-2); margin-top: 4px; font-variant-numeric: tabular-nums; }
.um-item {
  display: block; padding: 10px 12px; border-radius: 10px;
  font-size: 13px; color: var(--ink); text-decoration: none;
}
.um-item:hover { background: rgba(255,255,255,0.06); }
.um-danger { color: var(--red-2); }
.um-sep { height: 1px; margin: 6px 8px; background: rgba(255,255,255,0.08); }
@media (max-width: 720px) {
  .user-name { max-width: 72px; }
  .user-meta { display: none; }
}

/* 文字可读性加强：左文案区额外蒙版 */
.hero-video-text-shield {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(8,12,22,0.88) 0%, rgba(8,12,22,0.72) 28%, rgba(8,12,22,0.28) 52%, transparent 72%),
    linear-gradient(180deg, rgba(8,12,22,0.35) 0%, transparent 30%, rgba(8,12,22,0.55) 100%);
}
.hero-copy h1, .hero-copy p, .hero-kicker, .hero-tags {
  text-shadow: 0 2px 16px rgba(0,0,0,0.75);
}

/* ===== 游戏中心 Hero 视频轮播 ===== */
.hc-slides { position: relative; }
.hc-slide { display: none; }
.hc-slide.is-active { display: block; animation: hcIn .45s ease; }
@keyframes hcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gc-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; pointer-events: none;
  transition: opacity .45s ease; background: #061018; z-index: 1;
}
.gc-hero-video.is-active { opacity: 1; pointer-events: auto; }
.hero-video-wrap .hero-video-fade,
.hero-video-wrap .hero-video-text-shield { z-index: 4; }
.gc-hero-ctrl {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 5; display: flex; align-items: center; gap: 10px;
}
.gc-nav {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(194,181,155,.35);
  background: rgba(7,10,18,.55); color: #e8d5a3; cursor: pointer; font-size: 16px; line-height: 1;
  display: grid; place-items: center; transition: .18s ease;
}
.gc-nav:hover { background: rgba(194,181,155,.22); color: #fff; }
.gc-dots { display: flex; gap: 6px; align-items: center; }
.gc-dot {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px;
  background: rgba(232,213,163,.3); cursor: pointer; transition: .2s ease;
}
.gc-dot.is-active { width: 20px; background: linear-gradient(90deg,#f7e7b8,#c2b59b); }
@media (max-width: 920px) {
  .hc-slide.is-active { animation: none; }
}


/* ===== Hero 全幅 16:9：视频铺满整卡，文案叠层 + 底部渐变遮罩 ===== */
.hero.gc-fullbleed-wrap,
header.hero { display: block; }
.hero-card.gc-bleed {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  max-height: min(78vh, 820px);
  overflow: hidden;
  border-radius: 28px;
  /* 背景兜底：视频加载前也不破版 */
  background: linear-gradient(145deg, #152038, #0a1020 55%, #1c1530);
}
/* 视频全幅铺满 */
.hero-card.gc-bleed .hero-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: inherit;
  z-index: 1;
}
.hero-card.gc-bleed .gc-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 底部 + 轻左侧渐变：文字/按钮可读 */
.hero-card.gc-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* 单层平滑：上淡下浓，中段不挖空，避免看起来「只遮一半」 */
  background:
    linear-gradient(180deg,
      rgba(5, 7, 12, 0.22) 0%,
      rgba(5, 7, 12, 0.10) 22%,
      rgba(5, 7, 12, 0.28) 48%,
      rgba(5, 7, 12, 0.62) 70%,
      rgba(5, 7, 12, 0.88) 86%,
      rgba(5, 7, 12, 0.97) 100%),
    linear-gradient(90deg,
      rgba(5, 7, 12, 0.55) 0%,
      rgba(5, 7, 12, 0.28) 34%,
      rgba(5, 7, 12, 0.05) 58%,
      transparent 78%);
}
/* .hero-video-fade 已有 content 默认？无 content 则不生效——统一用 ::after，fade 关掉背景 */
.hero-card.gc-bleed .hero-video-fade { display: none !important; }
.hero-card.gc-bleed .hero-copy,
.hero-card.gc-bleed .gc-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  max-width: min(720px, 62%);
  padding: 28px 36px 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-card.gc-bleed .hc-slide.is-active h1 {
  font-size: clamp(28px, 4.2vw, 48px);
  text-shadow: 0 4px 24px rgba(0,0,0,.85);
}
.hero-card.gc-bleed .hc-slide p {
  max-width: 560px;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
.hero-card.gc-bleed .hero-meta strong { color: #ffd76a; }
.hero-badge {
  top: 18px;
  right: 18px;
  z-index: 5;
}
.gc-hero-ctrl {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 6;
}
/* 中小屏：文案全宽叠底 */
@media (max-width: 920px) {
  .hero-card.gc-bleed {
    aspect-ratio: 16 / 10;
    max-height: none;
  }
  .hero-card.gc-bleed .hero-copy,
  .hero-card.gc-bleed .gc-copy {
    max-width: 100%;
    padding: 20px 18px 52px;
  }
  .hero-card.gc-bleed .hc-slide.is-active h1 {
    font-size: clamp(24px, 7vw, 36px);
  }
  .hero-card.gc-bleed .hero-meta { display: none; }
  .hero-art { min-height: 0; }
}
@media (max-width: 560px) {
  .hero-card.gc-bleed .tag { display: none; }
  .hero-card.gc-bleed .tag:nth-child(-n+3) { display: inline-block; }
}

/* 赛季条（游戏大厅内嵌榜） */
.season-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 21px;
  padding: 14px 16px;
  border-radius: 14px;
  background:
    radial-gradient(120px 60px at 0% 50%, rgba(232, 213, 163, 0.18), transparent 70%),
    linear-gradient(90deg, rgba(194, 181, 155, 0.14), rgba(194, 181, 155, 0.04) 70%);
  border: 1px solid rgba(232, 213, 163, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.season-strip-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.season-live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #7dff8a; box-shadow: 0 0 10px #7dff8a;
  animation: pulse 1.6s ease infinite; flex-shrink: 0;
}
.season-strip-kicker {
  font-size: 10px; font-weight: 750; letter-spacing: 0.16em;
  color: var(--gold-2); margin-bottom: 3px;
}
.season-strip-title {
  font-size: 16px; font-weight: 800; letter-spacing: 0.04em;
  color: var(--gold-3);
}
.season-strip-days {
  display: flex; align-items: baseline; gap: 5px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(7, 10, 18, 0.45);
  border: 1px solid rgba(232, 213, 163, 0.35);
}
.season-strip-days b {
  font-size: 22px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #f7e7b8, #e8a23a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.season-strip-days span { font-size: 11px; color: var(--ink-2); }
.season-strip-link {
  margin-left: auto;
  font-size: 12.5px; font-weight: 650; color: var(--gold-2);
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(194, 181, 155, 0.3);
  background: rgba(194, 181, 155, 0.08);
  white-space: nowrap;
  transition: 0.2s ease;
}
.season-strip-link:hover {
  background: rgba(194, 181, 155, 0.18);
  color: var(--gold-3);
  border-color: rgba(232, 213, 163, 0.55);
}

/* ═══ 全球语言切换 · 12 语布局自适应 ═══ */
.j-lang { position: relative; flex-shrink: 0; z-index: 60; }
.j-lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid rgba(194,181,155,.32);
  background: rgba(194,181,155,.1);
  color: var(--gold-2, #e8d5a3); font-size: 13px; font-weight: 650;
  max-width: 160px; transition: border-color .2s ease, background .2s ease;
}
.j-lang-btn:hover { background: rgba(194,181,155,.18); border-color: rgba(232,213,163,.55); }
.j-lang-cur {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0; flex: 1; text-align: start;
}
.j-lang-chev { flex-shrink: 0; opacity: .75; transition: transform .2s ease; }
.j-lang-btn[aria-expanded="true"] .j-lang-chev { transform: rotate(180deg); }
.j-lang-menu {
  position: absolute; top: calc(100% + 8px);
  /* 锚定按钮内侧（导航按钮贴视口右缘）→ 菜单向左展开，永不越出视口 */
  inset-inline-start: auto; inset-inline-end: 0; z-index: 70;
  min-width: 188px; max-height: min(320px, 60vh); overflow-y: auto;
  padding: 8px; border-radius: 14px;
  background: #141c2f;
  border: 1px solid rgba(194,181,155,.38);
  box-shadow: 0 20px 48px rgba(0,0,0,.55);
  /* 双列栅格：12 种语言 6 行放下（≈256px < 320px 上限）→ 桌面端无滚动条 */
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px 6px;
  scrollbar-width: thin; scrollbar-color: rgba(194,181,155,.4) transparent;
}
.j-lang-menu::-webkit-scrollbar { width: 4px; }
.j-lang-menu::-webkit-scrollbar-thumb { background: rgba(194,181,155,.35); border-radius: 4px; }
.j-lang-menu::-webkit-scrollbar-track { background: transparent; }
.j-lang-menu[hidden] { display: none !important; }
@media (max-width: 480px) {
  /* 窄屏回退单列，尽量一屏放下；超出才出现细滚动条 */
  .j-lang-menu { grid-template-columns: 1fr; min-width: 168px; }
}
.j-lang-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2, #a8b3c7);
  text-align: start; transition: background .15s ease, color .15s ease;
}
.j-lang-opt:hover { background: rgba(194,181,155,.14); color: var(--gold-3, #f7e7b8); }
.j-lang-opt.is-active {
  background: linear-gradient(135deg, #f7e7b8, #c2b59b);
  color: #1a1408; font-weight: 750;
}
.j-lang-flag { font-size: 15px; line-height: 1; flex-shrink: 0; }
.j-lang-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 导航：长语言名（德/俄/法）不挤破 */
.gnav-links { min-width: 0; flex-wrap: wrap; row-gap: 4px; }
.gnav-links a { white-space: nowrap; }
.gnav-actions { flex-shrink: 0; gap: 8px; }
.gnav-inner { gap: 12px; }
@media (max-width: 720px) {
  .j-lang-cur { display: none; }
  .j-lang-btn { padding: 8px 10px; }
}

/* 卡片长文案：固定视觉高度，文案可换行不撑破黄金栅格 */
.card-body p {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 54px; max-height: 66px;
  overflow-wrap: anywhere; word-break: break-word;
}
.card-body h3 {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 榜单：外文昵称/分数列不挤压 */
.rank-meta strong, .nick, .sz-h-nick {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
table.board td:nth-child(2) { max-width: 42%; }
.rank-head { flex-wrap: wrap; row-gap: 10px; }
.rank-head h3 { min-width: 0; overflow-wrap: anywhere; }

/* 赛季主视觉：长标题换行，倒计时列宽锁定 → 黄金比 1.618 不散 */
.sz-hero { grid-template-columns: auto minmax(0, 1.618fr) minmax(180px, 0.618fr); }
.sz-hero-copy h1 {
  overflow-wrap: anywhere; line-height: 1.2;
}
.sz-countdown { min-width: 180px; }
.sz-hero-sub { overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .sz-hero { grid-template-columns: auto minmax(0, 1fr); }
  .sz-countdown { grid-column: 1 / -1; }
}

/* 提示/规则长句 */
.tip, .sz-rules li { overflow-wrap: anywhere; }
.sz-toolbar { row-gap: 10px; }
.sz-seg-btn { white-space: nowrap; }
.sz-seg { flex-shrink: 0; }

/* RTL（阿拉伯语）：菜单已统一锚定内侧行尾（inset-inline-end），无需额外翻转 */
.j-lang-btn[dir], [dir="rtl"] .j-lang-btn, [dir="rtl"] .j-lang-opt { justify-content: flex-start; }
[dir="rtl"] .rank-item:hover { transform: translateX(-2px); }
[dir="rtl"] .season-strip-link { margin-inline-start: auto; margin-inline-end: 0; }
[dir="rtl"] .rank-my .tag { margin-inline-start: auto; margin-inline-end: 0; }
[dir="rtl"] .my-right { margin-inline-start: auto; margin-inline-end: 0; }
[dir="rtl"] .hero-copy, [dir="rtl"] .sz-hero-copy { text-align: start; }

/* 语言切换瞬间的轻过渡，避免跳变刺眼 */
.j-lang-menu, .card-body p, .chip, .gnav-links a { transition: background .15s ease, color .15s ease; }

/* ══════════════════════════════════════════════════════════════════════════
   GEO/SEO 内容区块：全部游戏一览表 + 最新动态时间线
   （结构与文案由 _pv/gen_game_seo.py 生成，此处只管视觉；
     设计语言沿用本页：深空底 + 金色发丝边 + 玻璃面板）
   ══════════════════════════════════════════════════════════════════════════ */
/* 锚点跳转不被吸顶导航压住（#all-games / #updates / #catalog 均受益） */
#all-games, #updates, #catalog, #rank, #video-show {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.gd-wrap {
  background: linear-gradient(180deg, rgba(26, 36, 56, 0.72), rgba(12, 18, 32, 0.72));
  border: 1px solid rgba(194, 181, 155, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.gd-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.6;
}
.gd-table caption {
  caption-side: top;
  text-align: start;
  padding: 16px 18px 10px;
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.gd-table thead th {
  text-align: start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(194, 181, 155, 0.24);
  white-space: nowrap;
  background: rgba(7, 10, 18, 0.36);
  position: sticky;
  top: 0;
}
.gd-table tbody th,
.gd-table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(194, 181, 155, 0.08);
  vertical-align: top;
  color: var(--ink-2);
}
.gd-table tbody tr:last-child th,
.gd-table tbody tr:last-child td { border-bottom: 0; }
.gd-table tbody tr:hover th,
.gd-table tbody tr:hover td { background: rgba(194, 181, 155, 0.05); }
.gd-table tbody th {
  text-align: start;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
}
.gd-table tbody th a { color: var(--gold-3); border-bottom: 1px solid transparent; transition: border-color .15s ease; }
.gd-table tbody th a:hover { border-bottom-color: var(--gold); }
.gd-name { color: var(--ink); }
/* 未发布 / 公测徽章（目录表）：2028年发布 / 2030年发布 / 11·11 公测 */
.gd-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
  vertical-align: middle;
  color: #1a1408;
  background: linear-gradient(135deg, #f7e7b8, #c2b59b);
  border: 1px solid rgba(194, 181, 155, 0.55);
}
.gd-en {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--mute);
  margin-top: 3px;
}
.gd-desc { color: var(--ink-2); min-width: 190px; }
.gd-table time { color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gd-notes {
  margin-top: 18px;
  padding: 18px 20px;
  background: rgba(12, 18, 32, 0.5);
  border: 1px solid rgba(194, 181, 155, 0.1);
  border-radius: var(--radius-sm);
}
.gd-notes h3 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gold-2);
}
.gd-notes p { margin: 0 0 10px; color: var(--ink-2); font-size: 13px; line-height: 1.85; }
.gd-notes p:last-child { margin-bottom: 0; }
.gd-notes a { color: var(--cyan); border-bottom: 1px solid rgba(77, 225, 255, 0.35); }
.gd-notes a:hover { border-bottom-color: var(--cyan); }

/* 最新动态时间线 */
.upd-feed {
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold-2);
  padding: 7px 14px;
  border: 1px solid rgba(194, 181, 155, 0.32);
  border-radius: 999px;
  transition: background .15s ease, border-color .15s ease;
}
.upd-feed:hover { background: rgba(194, 181, 155, 0.1); border-color: var(--gold); }
.upd-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  position: relative;
}
.upd-list::before {
  content: "";
  position: absolute;
  inset-block: 8px 14px;
  inset-inline-start: 6px;
  width: 1px;
  background: linear-gradient(180deg, rgba(194, 181, 155, 0.45), rgba(194, 181, 155, 0.06));
}
.ui-item {
  position: relative;
  padding: 0 0 22px 0;
}
.ui-item:last-child { padding-bottom: 0; }
.ui-item::before {
  content: "";
  position: absolute;
  inset-inline-start: -24px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(194, 181, 155, 0.08);
}
.ui-date {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.ui-body {
  background: linear-gradient(180deg, rgba(26, 36, 56, 0.6), rgba(12, 18, 32, 0.5));
  border: 1px solid rgba(194, 181, 155, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.ui-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ui-head h3 { margin: 0; font-size: 14px; font-weight: 650; line-height: 1.5; color: var(--ink); }
.ui-head h3 a { color: var(--gold-3); border-bottom: 1px solid transparent; }
.ui-head h3 a:hover { border-bottom-color: var(--gold); }
.ui-badge {
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  line-height: 1.6;
}
.ut-release { color: var(--lime); }
.ut-update { color: var(--cyan); }
.ui-points { margin: 9px 0 0; padding-inline-start: 18px; color: var(--ink-2); font-size: 12.5px; line-height: 1.8; }
.ui-points li { margin-bottom: 2px; }
.ui-points li::marker { color: var(--gold); }

@media (max-width: 720px) {
  .gd-table { min-width: 760px; font-size: 12.5px; }
  .gd-table thead th, .gd-table tbody th, .gd-table tbody td { padding: 11px 12px; }
  .upd-list { padding-inline-start: 20px; }
  .ui-item::before { inset-inline-start: -18px; }
  .section-head { flex-wrap: wrap; }
  .ui-body { padding: 12px 13px; }
}
