/* ============================================================
   游戏坞 NeuralDock · 未来科技 × 乌金质感
   黑曜石底 + 乌金(黑金)金属材质 + 电光青科技点缀 + 玻璃拟态 + 灵动光效
   全站零依赖纯 CSS(粒子层由 app.js 挂 canvas)
   ============================================================ */
:root {
  --bg: #08070b;
  --bg-1: #0f0d14;
  --panel: rgba(21, 18, 26, 0.68);
  --panel-solid: #16131c;
  --panel-hover: rgba(30, 26, 36, 0.8);
  --line: rgba(217, 180, 95, 0.16);
  --line-strong: rgba(217, 180, 95, 0.4);
  --text: #f2ecdc;
  --text-dim: #9d947f;
  --gold-hi: #fff3c9;
  --gold: #dcb861;
  --gold-deep: #a07c2c;
  --bronze: #5f4616;
  --cy: #5ce6ff;
  --cy-rgb: 92, 230, 255;
  --gold-rgb: 220, 184, 97;
  --accent: var(--gold);
  --accent-dim: rgba(220, 184, 97, 0.12);
  /* 乌金金属渐变:多段高低光,模拟拉丝金属反光 */
  --grad: linear-gradient(135deg, #fff3c9 0%, #e6c67a 22%, #b8903a 48%, #f1d68c 72%, #8e6c25 100%);
  --grad-tech: linear-gradient(135deg, #5ce6ff 0%, #b9d9c9 45%, #dcb861 100%);
  --glow-gold: 0 0 22px rgba(220, 184, 97, 0.38);
  --glow-cy: 0 0 22px rgba(92, 230, 255, 0.35);
  --serif: Georgia, "Songti SC", "SimSun", serif;
  --sans: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Code", Consolas, "SF Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-color: #3a3020 var(--bg); background: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ---------- 全站背景:乌金暗辉 + 电光青冷光 + 科技网格 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(44% 36% at 16% 6%, rgba(220, 184, 97, 0.17), transparent 62%),
    radial-gradient(36% 30% at 84% 10%, rgba(92, 230, 255, 0.11), transparent 64%),
    radial-gradient(48% 40% at 72% 90%, rgba(160, 124, 44, 0.10), transparent 66%),
    radial-gradient(30% 26% at 6% 80%, rgba(92, 230, 255, 0.06), transparent 60%),
    linear-gradient(180deg, #0d0b11 0%, var(--bg) 40%);
  animation: aurora-drift 28s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(220, 184, 97, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 184, 97, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(78% 62% at 50% 30%, #000 28%, transparent 100%);
          mask-image: radial-gradient(78% 62% at 50% 30%, #000 28%, transparent 100%);
}

@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 2.5%, 0) scale(1.02); }
}

/* 金属光泽扫过(顶栏/按钮共用) */
@keyframes sheen-sweep {
  0%, 62% { transform: translateX(-140%) skewX(-18deg); }
  100%    { transform: translateX(260%) skewX(-18deg); }
}

/* 能量线流动 */
@keyframes energy-flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* 金属文字高光游走 */
@keyframes gold-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* 扫描光束下落 */
@keyframes scan-drop {
  0%   { transform: translateY(-20px); opacity: 0; }
  12%  { opacity: 0.85; }
  88%  { opacity: 0.5; }
  100% { transform: translateY(240px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* 粒子画布(仅首页挂载) */
#fxCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}

.wrap { width: min(1240px, 93vw); margin: 0 auto; }

::selection { background: rgba(220, 184, 97, 0.35); }

/* ---------- header:拉丝乌金金属面 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(40, 34, 46, 0.96) 0%, rgba(24, 20, 29, 0.94) 55%, rgba(16, 13, 20, 0.96) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
          backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(220, 184, 97, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 243, 201, 0.10), 0 10px 34px rgba(0, 0, 0, 0.5);
}

/* 金属光泽:一道斜光每 7 秒扫过顶栏 */
.site-header::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 26%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 243, 201, 0.07) 45%, rgba(255, 255, 255, 0.11) 50%, rgba(255, 243, 201, 0.07) 55%, transparent 100%);
  animation: sheen-sweep 7s ease-in-out infinite;
  pointer-events: none;
}

/* 能量线:顶栏底边一条青→金流动的细光 */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cy) 22%, var(--gold-hi) 50%, var(--gold) 62%, transparent 100%);
  background-size: 200% 100%;
  animation: energy-flow 5.5s linear infinite;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px rgba(220, 184, 97, 0.6));
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 13px; }

.brand-mark {
  width: 42px;
  height: 42px;
  padding: 9px;
  color: #1a1207;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--grad);
  background-size: 200% 200%;
  animation: gold-shimmer 6s linear infinite;
  box-shadow: 0 0 18px rgba(220, 184, 97, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 14px rgba(0, 0, 0, 0.5);
}

.brand-text h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 6px;
  line-height: 1.2;
  background: linear-gradient(110deg, #fff6d6 0%, #e9cd86 25%, #b99341 45%, #fff1c2 60%, #d9b45f 80%, #f6e6b8 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 5s linear infinite;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6));
}

.brand-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cy);
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.85;
}

.search-box { flex: 1; display: flex; justify-content: center; }

.search-box input {
  background: rgba(10, 8, 13, 0.75);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  padding: 10px 20px;
  width: min(380px, 100%);
  font-size: 14px;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  transition: border-color 0.25s, box-shadow 0.25s, width 0.3s ease;
}

.search-box input:focus {
  border-color: var(--gold);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(220, 184, 97, 0.16), var(--glow-gold);
  width: min(440px, 100%);
}

.search-box input::placeholder { color: var(--text-dim); }

.shop-entry {
  position: relative;
  flex-shrink: 0;
  color: #1c1407;
  background: var(--grad);
  background-size: 200% 200%;
  border: 0;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(220, 184, 97, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 16px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.6s ease;
}

.shop-entry::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.shop-entry:hover {
  transform: translateY(-1px);
  background-position: 100% 50%;
  box-shadow: 0 0 28px rgba(220, 184, 97, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 20px rgba(0, 0, 0, 0.5);
}
.shop-entry:hover::after { left: 130%; }

/* ---------- hero:乌金辉光 + 扫描光束 ---------- */
.hero {
  position: relative;
  padding: 36px 0 8px;
  overflow: hidden;
}

/* 标题背后的暖金辉光,让顶部"亮起来" */
.hero::before {
  content: "";
  position: absolute;
  left: 4%; top: -40%;
  width: 46%; height: 190%;
  background: radial-gradient(50% 50% at 40% 45%, rgba(220, 184, 97, 0.16), rgba(220, 184, 97, 0.04) 50%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

/* 扫描光束:一条电光青细线周期性从上往下掠过 hero */
.hero-scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(92, 230, 255, 0.0) 8%, rgba(92, 230, 255, 0.55) 30%, rgba(255, 243, 201, 0.7) 50%, rgba(92, 230, 255, 0.55) 70%, transparent 92%);
  box-shadow: 0 0 12px rgba(92, 230, 255, 0.5);
  animation: scan-drop 6.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-copy h2 {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.25;
  background: linear-gradient(112deg, #fff8e3 0%, #f3dc9c 24%, #c9a24a 44%, #fff1c2 58%, #dcb861 76%, #f8ead0 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 6s linear infinite;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55)) drop-shadow(0 0 18px rgba(220, 184, 97, 0.18));
}

.hero-copy .hero-sub {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 14.5px;
  letter-spacing: 0.5px;
}

.hero-sub .hero-dot {
  display: inline-block;
  width: 6px; height: 6px;
  margin: 0 10px 3px;
  border-radius: 50%;
  background: var(--cy);
  box-shadow: 0 0 8px rgba(92, 230, 255, 0.9);
}

.hero-actions { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-btn {
  position: relative;
  border-radius: 10px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
}

.hero-btn.primary {
  color: #1c1407;
  background: var(--grad);
  background-size: 200% 200%;
  border: 0;
  box-shadow: 0 0 18px rgba(220, 184, 97, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-btn.primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 0 30px rgba(220, 184, 97, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-btn.ghost {
  color: var(--cy);
  background: rgba(92, 230, 255, 0.05);
  border: 1px solid rgba(92, 230, 255, 0.42);
}

.hero-btn.ghost:hover {
  background: rgba(92, 230, 255, 0.13);
  border-color: var(--cy);
  box-shadow: var(--glow-cy);
  transform: translateY(-2px);
}

.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; }

/* 数据卡:黑曜石面 + 金色顶线 + HUD 角标 */
.stat-chip {
  position: relative;
  min-width: 132px;
  padding: 14px 20px 12px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(34, 29, 40, 0.8), rgba(16, 13, 20, 0.85));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 243, 201, 0.06), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.stat-chip::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%; height: 2px;
  background: var(--grad);
  background-size: 200% 100%;
  animation: gold-shimmer 7s linear infinite;
  opacity: 0.9;
}

/* 右下角 HUD 括角 */
.stat-chip::after {
  content: "";
  position: absolute;
  right: 8px; bottom: 8px;
  width: 12px; height: 12px;
  border-right: 1px solid rgba(92, 230, 255, 0.7);
  border-bottom: 1px solid rgba(92, 230, 255, 0.7);
  opacity: 0.8;
}

.stat-chip b {
  display: block;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 6s linear infinite;
}

.stat-chip span { font-size: 12px; color: var(--text-dim); letter-spacing: 1px; }

/* ---------- genre bar:乌金胶囊 ---------- */
.genre-bar {
  position: sticky;
  top: 71px;
  z-index: 40;
  padding: 14px 0 10px;
  background: linear-gradient(rgba(8, 7, 11, 0.9) 66%, transparent);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.genre-bar .wrap { display: flex; flex-wrap: wrap; gap: 8px; }

.genre-tag {
  background: linear-gradient(180deg, rgba(30, 26, 36, 0.8), rgba(14, 12, 18, 0.85));
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  padding: 6px 17px;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: inset 0 1px 0 rgba(255, 243, 201, 0.05);
  transition: all 0.22s ease;
}

.genre-tag:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.genre-tag.active {
  background: linear-gradient(135deg, rgba(220, 184, 97, 0.2), rgba(92, 230, 255, 0.08));
  border-color: rgba(220, 184, 97, 0.75);
  color: var(--gold-hi);
  box-shadow: 0 0 14px rgba(220, 184, 97, 0.28), inset 0 0 12px rgba(220, 184, 97, 0.07);
  text-shadow: 0 0 12px rgba(220, 184, 97, 0.6);
}

/* 分区计数 */
.genre-tag small {
  font-family: var(--mono);
  font-size: 10.5px;
  margin-left: 6px;
  opacity: 0.6;
  letter-spacing: 0;
}
.genre-tag.active small { opacity: 0.9; color: var(--cy); text-shadow: none; }

/* ---------- game grid:图标式卡片(App 图标墙) ---------- */
main { flex: 1; padding: 16px 0 56px; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 16px;
}

.game-card {
  position: relative;
  display: block;
  padding: 16px 12px 13px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 243, 201, 0.04);
  transition: transform 0.28s cubic-bezier(0.22, 0.68, 0.32, 1.2),
              border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

/* 卡片背后按游戏色相的一团柔光,悬浮时亮起 */
.game-card::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 150%; height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(50% 60% at 50% 30%, hsla(var(--h, 40), 70%, 60%, 0.14), transparent 70%);
  opacity: 0.55;
  transition: opacity 0.3s;
  pointer-events: none;
}

.game-card:hover::before { opacity: 1; }

/* 入场:JS 加 .reveal → 进视口加 .in */
.game-card.reveal { opacity: 0; transform: translateY(18px) scale(0.97); }
.game-card.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 0.68, 0.32, 1.15),
              border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.game-card:hover {
  transform: translateY(-6px);
  background: var(--panel-hover);
  border-color: rgba(220, 184, 97, 0.7);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6),
              0 0 22px rgba(220, 184, 97, 0.18),
              inset 0 1px 0 rgba(255, 243, 201, 0.12);
}

/* 图标容器(--h 游戏色相由 JS 设在 .game-card 上) */
.card-icon-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 12px;
  border-radius: 24%;
}

.card-icon,
.icon-fallback {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 24%;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55),
              inset 0 0 0 1px rgba(255, 243, 201, 0.16),
              0 0 0 1px rgba(220, 184, 97, 0.22);
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s;
}

.icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 700;
  color: rgba(255, 243, 201, 0.92);
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.6);
}

/* 悬浮:图标上浮,乌金光环点亮,▶ 徽章从图标里弹出 */
.game-card:hover .card-icon,
.game-card:hover .icon-fallback {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.6),
              0 0 0 2px rgba(220, 184, 97, 0.85),
              0 0 26px rgba(220, 184, 97, 0.45);
}

.card-icon-wrap::after {
  content: "▶";
  position: absolute;
  z-index: 2;
  right: -6px; bottom: -6px;
  width: 34px; height: 34px;
  line-height: 34px;
  text-align: center;
  font-size: 12px;
  color: #1c1407;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(220, 184, 97, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 16px rgba(0, 0, 0, 0.5);
  transform: scale(0.3);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.game-card:hover .card-icon-wrap::after { opacity: 1; transform: scale(1); }

.card-body { position: relative; }

.card-name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.5px;
}

.card-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.card-genre {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--gold);
  border: 1px solid rgba(220, 184, 97, 0.32);
  background: rgba(220, 184, 97, 0.07);
  border-radius: 6px;
  padding: 1px 7px;
  letter-spacing: 1px;
}

.card-plays {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.card-plays::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin: 0 5px 2px 0;
  border-radius: 50%;
  background: var(--cy);
  box-shadow: 0 0 7px rgba(92, 230, 255, 0.9);
}

.card-tagline {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 分页:乌金胶囊 ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.pg-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(30, 26, 36, 0.85), rgba(14, 12, 18, 0.9));
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 243, 201, 0.05);
  transition: all 0.2s ease;
}

.pg-btn:hover:not(:disabled) {
  color: var(--gold-hi);
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(220, 184, 97, 0.2);
}

.pg-btn:disabled { opacity: 0.38; cursor: default; }

.pg-btn.pg-cur,
.pg-btn.pg-cur:disabled {
  opacity: 1;
  color: #1c1407;
  font-weight: 800;
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(220, 184, 97, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.pg-edge { font-size: 17px; line-height: 1; }

.pg-dots { color: var(--text-dim); padding: 0 2px; font-family: var(--mono); }

.pg-info {
  flex-basis: 100%;
  text-align: center;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 26px;
  z-index: 60;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(220, 184, 97, 0.55);
  background: linear-gradient(180deg, rgba(40, 34, 46, 0.95), rgba(16, 13, 20, 0.95));
  color: var(--gold-hi);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 14px rgba(220, 184, 97, 0.2);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.25s;
}

.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 22px rgba(220, 184, 97, 0.45); border-color: var(--gold); }

/* ---------- empty state ---------- */
.empty-state { text-align: center; padding: 100px 0; }

.empty-title { font-size: 20px; color: var(--text-dim); letter-spacing: 3px; }
.empty-title .nm-kw { color: var(--gold); letter-spacing: 0; }

.empty-hint { font-size: 13px; color: var(--text-dim); opacity: 0.75; margin-top: 8px; }

.link-btn {
  background: none;
  border: 0;
  padding: 0 2px;
  color: var(--cy);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline dotted;
}
.link-btn:hover { color: var(--gold-hi); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(220, 184, 97, 0.4), rgba(92, 230, 255, 0.25), transparent) 1;
  padding: 20px 0;
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- play page:乌金舞台 ---------- */
.play-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(40, 34, 46, 0.96), rgba(16, 13, 20, 0.96));
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 184, 97, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 243, 201, 0.10), 0 8px 26px rgba(0, 0, 0, 0.5);
}

.play-topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cy) 22%, var(--gold-hi) 50%, var(--gold) 62%, transparent 100%);
  background-size: 200% 100%;
  animation: energy-flow 5.5s linear infinite;
  opacity: 0.85;
}

.play-back {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, text-shadow 0.2s;
  flex-shrink: 0;
}

.play-back:hover { color: var(--gold-hi); text-shadow: 0 0 12px rgba(220, 184, 97, 0.7); }

.play-title {
  font-size: 15px;
  font-weight: 700;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 1px;
  background: linear-gradient(110deg, #fff6d6, #e9cd86 40%, #fff1c2 60%, #d9b45f);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 6s linear infinite;
}

.play-fullscreen,
.play-mode {
  background: rgba(10, 8, 13, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text-dim);
  padding: 5px 15px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.play-fullscreen:hover,
.play-mode:hover {
  color: var(--gold-hi);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(220, 184, 97, 0.3);
}

.play-stage {
  flex: 1;
  display: flex;
  justify-content: center;
  min-height: 0;
  background:
    radial-gradient(50% 42% at 22% 10%, rgba(220, 184, 97, 0.08), transparent 62%),
    radial-gradient(46% 40% at 82% 86%, rgba(92, 230, 255, 0.07), transparent 64%),
    #06050a;
}

.play-frame-wrap { position: relative; width: 100%; height: 100%; }

.play-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* 桌面横屏:竖屏容器乌金描边 */
@media (min-aspect-ratio: 5/6) {
  .play-stage:not(.wide) .play-frame-wrap {
    width: min(100%, calc((100vh - 46px) * 0.5625));
    box-shadow: 0 0 0 1px rgba(220, 184, 97, 0.38),
                0 0 34px rgba(220, 184, 97, 0.12),
                0 0 70px rgba(92, 230, 255, 0.07);
  }
}

@media (max-aspect-ratio: 5/6) {
  .play-mode { display: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .card-icon-wrap { width: 84px; height: 84px; }
  .hero { padding-top: 24px; }
}

@media (max-width: 640px) {
  .site-header { padding: 10px 0; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .brand { order: 1; }
  .shop-entry { order: 2; margin-left: auto; padding: 8px 16px; }
  .search-box { order: 3; flex-basis: 100%; }
  .search-box input, .search-box input:focus { width: 100%; }
  .brand-text h1 { font-size: 20px; letter-spacing: 4px; }
  .brand-mark { width: 34px; height: 34px; padding: 7px; }

  .hero { padding: 18px 0 2px; }
  .hero::before { left: -10%; width: 90%; }
  .hero-inner { gap: 16px; }
  .hero-stats { gap: 9px; width: 100%; }
  .stat-chip { flex: 1; min-width: 96px; padding: 11px 13px 9px; }
  .stat-chip b { font-size: 21px; }

  .genre-bar { top: 108px; padding: 10px 0 8px; }
  .genre-bar .wrap {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .genre-bar .wrap::-webkit-scrollbar { display: none; }
  .genre-tag { flex-shrink: 0; }

  /* 手机:三列图标墙,像桌面 App 抽屉 */
  .game-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .game-card { padding: 12px 6px 10px; border-radius: 14px; }
  .card-icon-wrap { width: 68px; height: 68px; margin-bottom: 8px; }
  .card-icon-wrap::after { width: 26px; height: 26px; line-height: 26px; font-size: 10px; right: -4px; bottom: -4px; }
  .card-name { font-size: 13px; letter-spacing: 0; }
  .card-meta { gap: 5px; margin-top: 4px; }
  .card-genre { font-size: 9.5px; padding: 0 5px; }
  .card-plays { display: none; }
  .card-tagline { display: none; }
  .pager { gap: 6px; margin-top: 22px; }
  .pg-btn { min-width: 34px; height: 34px; padding: 0 9px; font-size: 12.5px; }
  .to-top { right: 14px; bottom: 18px; width: 40px; height: 40px; }
  .play-topbar { padding: 8px 12px; gap: 10px; }
}

@media (max-width: 360px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .card-icon-wrap { width: 60px; height: 60px; }
}
