/* ============================================================
   Steam 多用户行为对比 — 深色主题
   ============================================================ */
:root {
  --bg: #0b0f1a;
  --bg-2: #101627;
  --card: rgba(22, 30, 48, 0.72);
  --card-2: rgba(15, 21, 37, 0.6);
  --card-border: rgba(102, 192, 244, 0.12);
  --text: #e9eff8;
  --text-dim: #93a3b8;
  --accent: #66c0f4;
  --accent-2: #a1c4fd;
  --green: #7ee787;
  --orange: #f5a623;
  --red: #ff6b6b;
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(1000px 560px at 88% -8%, rgba(102, 192, 244, 0.11), transparent 62%),
    radial-gradient(760px 480px at -8% 24%, rgba(161, 196, 253, 0.08), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(126, 231, 135, 0.05), transparent 65%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(102, 192, 244, 0.35); }

/* 表单控件继承字体（按钮默认走系统 UI 字体） */
button, input, select, textarea { font-family: inherit; }

/* 用户偏好减少动效时关闭所有动画 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 定制滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(102, 192, 244, 0.22); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(102, 192, 244, 0.4); background-clip: content-box; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.bg-glow { position: fixed; inset: 0; pointer-events: none; z-index: -1; }

/* ============ 头部 ============ */
.page-header {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 22px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(11, 15, 26, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(102, 192, 244, 0.1);
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, rgba(102, 192, 244, 0.2), rgba(161, 196, 253, 0.08));
  border: 1px solid rgba(102, 192, 244, 0.25);
  border-radius: 13px;
  filter: drop-shadow(0 0 12px rgba(102, 192, 244, 0.35));
}
.logo h1 { font-size: 21px; letter-spacing: 0.5px; font-weight: 800; }
.subtitle { color: var(--text-dim); font-size: 12.5px; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.mode-badge {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  user-select: none;
}
.mode-badge:hover { border-color: var(--accent); color: var(--text); }
.mode-badge.steam {
  color: var(--green);
  border-color: rgba(126, 231, 135, 0.35);
  background: rgba(126, 231, 135, 0.07);
  box-shadow: 0 0 14px rgba(126, 231, 135, 0.12);
}

/* ============ 布局 ============ */
.container { max-width: 1160px; margin: 0 auto; padding: 20px 22px 48px; }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* 结果卡片入场动画（阶梯式） */
#results .card { animation: riseIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
#results .card:nth-child(1) { animation-delay: 0.02s; }
#results .card:nth-child(2) { animation-delay: 0.08s; }
#results .card:nth-child(3) { animation-delay: 0.14s; }
#results .card:nth-child(4) { animation-delay: 0.2s; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-size: 17px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.hidden { display: none !important; }

.hint { font-size: 12.5px; color: var(--text-dim); }
.api-hint code, .settings-col code {
  background: rgba(102, 192, 244, 0.12);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--accent-2);
}

/* ============ 输入区 ============ */
.input-card { background: linear-gradient(180deg, rgba(28, 38, 62, 0.6), rgba(18, 25, 42, 0.6)); }

.input-list { display: flex; flex-direction: column; gap: 12px; }
.input-row { display: flex; align-items: flex-end; gap: 10px; animation: riseIn 0.3s ease both; }
.input-group { flex: 1; min-width: 220px; }
.input-group label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
  letter-spacing: 0.8px;
  font-weight: 600;
}
.input-group input {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(102, 192, 244, 0.22);
  background: rgba(9, 13, 24, 0.7);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input-group input::placeholder { color: rgba(147, 163, 184, 0.55); }
.input-group input:hover { border-color: rgba(102, 192, 244, 0.4); }
.input-group input:focus {
  border-color: var(--accent);
  background: rgba(9, 13, 24, 0.9);
  box-shadow: 0 0 0 3px rgba(102, 192, 244, 0.16);
}

.btn-remove {
  width: 42px; height: 46px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 107, 0.07);
  color: #ff9d9d;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn-remove:hover { background: rgba(255, 107, 107, 0.18); transform: translateY(-1px); }

.input-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.btn-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.btn-primary {
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #3a9be8, #1a6fbf);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(47, 143, 221, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.1); box-shadow: 0 8px 22px rgba(47, 143, 221, 0.5); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: wait; transform: none; filter: none; }

.btn-add {
  padding: 10px 16px;
  border: 1px solid rgba(102, 192, 244, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(102, 192, 244, 0.06);
  color: var(--accent-2);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-add:hover { background: rgba(102, 192, 244, 0.14); border-color: rgba(102, 192, 244, 0.45); transform: translateY(-1px); }
.btn-add:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.input-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ============ 提示条 ============ */
.notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 13.5px;
  border: 1px solid;
  border-left-width: 4px;
  animation: riseIn 0.3s ease both;
  line-height: 1.6;
}
.notice-icon { flex-shrink: 0; font-size: 15px; margin-top: 1px; }
.notice.info { background: rgba(102, 192, 244, 0.08); border-color: rgba(102, 192, 244, 0.3); color: var(--accent-2); }
.notice.error { background: rgba(255, 107, 107, 0.08); border-color: rgba(255, 107, 107, 0.35); color: #ffb9b9; }
.notice.success { background: rgba(126, 231, 135, 0.08); border-color: rgba(126, 231, 135, 0.3); color: #c8f3cd; }

/* ============ 加载 ============ */
.loading { text-align: center; padding: 70px 0; color: var(--text-dim); }
.spinner {
  width: 42px; height: 42px;
  margin: 0 auto 16px;
  border: 3px solid rgba(102, 192, 244, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  filter: drop-shadow(0 0 8px rgba(102, 192, 244, 0.4));
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { margin-bottom: 14px; font-size: 14px; }
.loading-track {
  width: min(360px, 70%);
  height: 6px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.loading-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f8fdd, #66c0f4, #a1c4fd);
  transition: width 0.35s ease;
  box-shadow: 0 0 10px rgba(102, 192, 244, 0.5);
}

/* ============ 数据设置面板 ============ */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 14px; }
.settings-col {
  padding: 16px 18px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--card-2);
}
.settings-col h3 { margin-bottom: 8px; }
.settings-col p { margin-bottom: 12px; }
.settings-col label { display: block; font-size: 12px; color: var(--text-dim); margin: 10px 0 5px; font-weight: 600; }
.settings-col input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid rgba(102, 192, 244, 0.22);
  background: rgba(9, 13, 24, 0.7);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.settings-col input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(102, 192, 244, 0.14); }

/* ============ 玩家档案 ============ */
.profiles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 16px; }
.profile {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--card-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.profile:hover { transform: translateY(-2px); border-color: rgba(102, 192, 244, 0.28); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.profile-head { display: flex; gap: 14px; align-items: center; }
.pg-title {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.6px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Top 4 常玩游戏 */
.pgame { display: flex; align-items: center; gap: 9px; font-size: 12.5px; padding: 3.5px 0; }
.pgame .nm {
  flex: 1; min-width: 0;
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}
.pgame .hrs { color: var(--text-dim); font-size: 11.5px; flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* 游玩方向取向 */
.orient-row { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-top: 6px; }
.orient-row .lbl { width: 74px; flex-shrink: 0; }
.orient-bar { flex: 1; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.orient-fill {
  height: 100%; border-radius: 999px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 8px rgba(102, 192, 244, 0.35);
}
.orient-row .pct { width: 38px; text-align: right; color: var(--text-dim); font-size: 11px; flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* 头像 */
.avatar {
  position: relative;
  width: 66px; height: 66px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 25px; font-weight: 800;
  color: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 18px rgba(102, 192, 244, 0.3), inset 0 0 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  background-size: cover;
}
.avatar-fb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.25s; }
.avatar img.ok { opacity: 1; }

.profile-name { font-size: 16px; font-weight: 800; letter-spacing: 0.2px; }
.profile-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.profile-stats { display: flex; gap: 7px; margin-top: 8px; flex-wrap: wrap; }
.stat-chip {
  font-size: 11.5px;
  padding: 3.5px 11px;
  border-radius: 999px;
  background: rgba(102, 192, 244, 0.09);
  border: 1px solid rgba(102, 192, 244, 0.18);
  color: var(--accent-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stat-chip.steam-link { text-decoration: none; border-color: rgba(126, 231, 135, 0.3); color: var(--green); transition: background 0.15s; }
.stat-chip.steam-link:hover { background: rgba(126, 231, 135, 0.12); }

/* ============ 好感度 ============ */
.matrix-layout { display: grid; grid-template-columns: minmax(340px, 1.05fr) 1fr; gap: 30px; align-items: start; }
.matrix-side { min-width: 0; }

.affinity-matrix { display: flex; flex-direction: column; gap: 7px; }
.matrix-row { display: grid; gap: 7px; }
.matrix-cell {
  position: relative;
  height: 44px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 13.5px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  font-variant-numeric: tabular-nums;
}
.matrix-cell:hover { transform: scale(1.06); z-index: 2; }
.matrix-cell:focus-visible { outline: 2px solid #fff; outline-offset: 2px; transform: scale(1.06); z-index: 2; }
.matrix-cell.self {
  background: rgba(255, 255, 255, 0.05);
  cursor: default;
  color: var(--text-dim);
  text-shadow: none;
  font-weight: 700;
}
.matrix-cell.self:hover { transform: none; }
.matrix-cell.selected { outline: 2px solid #fff; outline-offset: 2px; }
.matrix-cell.best {
  outline: 2px solid rgba(245, 166, 35, 0.9);
  outline-offset: 2px;
  box-shadow: 0 0 16px rgba(245, 166, 35, 0.55);
}
.matrix-cell.best::after {
  content: '👑';
  position: absolute;
  top: -10px;
  right: -6px;
  font-size: 11px;
  text-shadow: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
.matrix-hint { font-size: 12px; color: var(--text-dim); margin: 12px 0 18px; }

.pair-scorebox { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }

.score-ring {
  --p: 0;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255, 255, 255, 0.06) 0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.6s ease;
  position: relative;
  flex-shrink: 0;
  filter: drop-shadow(0 0 18px rgba(102, 192, 244, 0.35));
}
.score-ring.sm { width: 150px; height: 150px; }
.score-inner {
  width: 128px; height: 128px;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}
.score-inner.sm { width: 122px; height: 122px; }
.score-value {
  font-size: 48px; font-weight: 800; line-height: 1.05;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #fff, #a1c4fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.score-inner.sm .score-value { font-size: 40px; }
.score-unit { font-size: 12px; color: var(--text-dim); }
.score-level { margin-top: 10px; font-size: 15px; font-weight: 800; }

.affinity-detail { min-width: 0; }
.factor-bars { display: flex; flex-direction: column; gap: 13px; }
.factor-item { min-width: 0; }
.factor-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.factor-name { color: var(--text-dim); }
.factor-name small { opacity: 0.65; }
.factor-value { font-weight: 800; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.factor-track { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.factor-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.verdict {
  margin-top: 20px;
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  background: rgba(126, 231, 135, 0.06);
  border: 1px solid rgba(126, 231, 135, 0.18);
  border-left: 4px solid rgba(126, 231, 135, 0.5);
  font-size: 13.5px;
  color: #c8f3cd;
  line-height: 1.8;
}

/* ============ 图表 ============ */
.chart-box {
  position: relative;
  height: 340px;
  min-height: 0;
  overflow: hidden;
}
.chart-box.tall { height: 440px; }
.chart-box canvas { max-width: 100%; }
.chart-fallback {
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #9aa9bd;
  font-size: 13px;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding: 8px;
}
.chart-subtitle { font-size: 14px; color: var(--text-dim); margin-bottom: 8px; font-weight: 700; }

/* ============ 共同游戏 ============ */
.shared-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.shared-stat {
  flex: 1; min-width: 150px;
  padding: 15px 14px;
  border-radius: var(--radius-sm);
  background: var(--card-2);
  border: 1px solid var(--card-border);
  text-align: center;
  transition: border-color 0.15s, transform 0.15s;
}
.shared-stat:hover { border-color: rgba(102, 192, 244, 0.3); transform: translateY(-1px); }
.shared-stat .num {
  font-size: 27px; font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(102, 192, 244, 0.4);
}
.shared-stat .lbl { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* ============ 游戏热度榜 ============ */
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.list-head .chart-subtitle { margin-top: 0; margin-bottom: 10px; }
.seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.seg-btn {
  padding: 5.5px 13px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: rgba(102, 192, 244, 0.18); color: var(--accent-2); font-weight: 800; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }

.game-list { display: flex; flex-direction: column; gap: 8px; }
.game-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  background: var(--card-2);
  border: 1px solid var(--card-border);
  font-size: 13px;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.game-row:hover { border-color: rgba(102, 192, 244, 0.3); background: rgba(102, 192, 244, 0.05); transform: translateX(2px); }
.game-rank { width: 28px; color: var(--text-dim); font-size: 12px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.game-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; }
.game-name .gname-text {
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}
.game-dots { display: flex; gap: 4px; flex-shrink: 0; }
.dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 6px rgba(0, 0, 0, 0.4); }
.game-meta { color: var(--text-dim); font-size: 12px; white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* ============ 游戏图标 ============ */
.game-icon {
  position: relative;
  width: 24px; height: 24px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(102, 192, 244, 0.12);
  font-size: 13px;
  line-height: 1;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.gi-fb {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1;
}
.game-icon b { font-weight: 700; color: var(--accent-2); font-size: 11px; }
.game-icon img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s;
}
.game-icon img.ok { opacity: 1; }

/* ============ 页脚 ============ */
.page-footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  padding: 10px 20px 38px;
  opacity: 0.75;
}

/* ============ 响应式 ============ */
@media (max-width: 880px) {
  .matrix-layout { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .matrix-cell { height: 38px; font-size: 12px; }
  .page-header { position: static; padding: 18px 16px 12px; }
  .logo h1 { font-size: 18px; }
  .container { padding: 14px 14px 40px; }
  .card { padding: 18px 16px; }
}
