/* =========================================================================
   GameBoard — 静态展示页样式
   黑白灰 · 扁平风格（少圆角 / 少透明 / 少发光）· 网格与列表双视图
   ========================================================================= */

:root {
  /* 扁平配色：纯黑底 + 纯灰分隔线，不用半透明面板 */
  --bg: #0b0b0d;
  --bg-2: #101012;
  --surface: #141416;
  --surface-2: #1a1a1d;
  --surface-3: #202024;

  --line: #262629;
  --line-strong: #3a3a3f;

  --text: #f2f2f2;
  --muted: #9a9aa0;
  --dim: #6b6b71;

  --accent: #f2f2f2;
  --accent-2: #d2d2d2;
  --ok: #ffffff;
  --warn: #cfcfcf;

  --hair: 2px;                            /* 扁平风格的小圆角 */
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.5);   /* 只用一条硬阴影做层次 */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --font: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    "Hiragino Sans GB", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* hidden 属性必须胜过组件自身的 display（例如 .modal 的 grid） */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

::selection { background: #3a3a3f; }

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

/* ---------- 滚动条（扁平） ---------- */
* { scrollbar-width: thin; scrollbar-color: #333338 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #333338; }
*::-webkit-scrollbar-thumb:hover { background: #45454b; }
*::-webkit-scrollbar-track { background: transparent; }

/* =========================================================================
   背景：扁平化，只留极淡的网格
   ========================================================================= */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.backdrop::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
}

.halo { display: none; }

.dust { position: absolute; inset: 0; }
.dust i {
  position: absolute;
  bottom: -10vh;
  width: 2px; height: 2px;
  background: rgba(255, 255, 255, 0.5);
  animation: rise linear infinite;
  will-change: transform, opacity;
}

.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.03), transparent 60%);
}

@keyframes rise {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  12%  { opacity: 0.7; }
  80%  { opacity: 0.35; }
  100% { transform: translate3d(var(--dx, 10px), -112vh, 0); opacity: 0; }
}

/* =========================================================================
   页面骨架
   ========================================================================= */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1640px;
  margin: 0 auto;
  padding: 34px 30px 26px;
}

/* ---------- 标题 ---------- */
.masthead {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.masthead__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--dim);
  margin-bottom: 10px;
  animation: fade-up 0.5s var(--ease) both;
}

/* 状态点：静态，去掉闪烁 */
.pulse-dot { width: 6px; height: 6px; background: #d8d8d8; }

.masthead__title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);          /* 纯色标题：不再有渐变扫光，避免闪动 */
  animation: fade-up 0.55s 0.04s var(--ease) both;
}

.masthead__sub {
  margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  color: var(--muted); font-size: 13px;
  animation: fade-up 0.55s 0.1s var(--ease) both;
}
.masthead__sub b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.masthead__sub .dot { color: var(--dim); }

/* ---------- 工具栏 ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 10px 12px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--hair);
  background: var(--bg-2);
  position: sticky; top: 0; z-index: 40;
  animation: fade-up 0.55s 0.16s var(--ease) both;
}

.search {
  display: flex; align-items: center; gap: 8px;
  flex: 1 1 240px; min-width: 200px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--hair);
  background: var(--surface);
  transition: border-color 0.18s var(--ease-soft), background 0.18s;
}
.search:focus-within { border-color: var(--line-strong); background: var(--surface-2); }
.search svg { font-size: 15px; color: var(--dim); }
.search input {
  flex: 1; min-width: 0;
  border: 0; background: none; outline: none;
  color: var(--text); font: inherit; font-size: 14px;
}
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { filter: invert(0.6); }

kbd {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 10.5px; line-height: 1;
  padding: 3px 5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--hair);
  background: var(--surface-2);
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 2 1 360px; }
.chip {
  font: inherit; font-size: 12px; font-weight: 600;
  padding: 6px 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--hair);
  background: var(--surface);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  animation: chip-in 0.35s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 20ms + 0.2s);
}
.chip b { font-weight: 600; opacity: 0.6; }
.chip:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.chip[aria-pressed="true"] { color: #0b0b0d; border-color: var(--accent); background: var(--accent); }
.chip[aria-pressed="true"] b { opacity: 0.55; }
@keyframes chip-in { from { opacity: 0; } to { opacity: 1; } }

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

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 13px;
  border-radius: var(--hair);
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn svg { font-size: 15px; }
.btn:hover { background: var(--surface-3); border-color: var(--line-strong); }
.btn:active { background: var(--surface-2); }

/* 主按钮：实心反白；悬浮时反相为深底白字，保证任何底色上都清晰 */
.btn--primary {
  border-color: var(--accent);
  color: #0b0b0d;
  background: var(--accent);
}
.btn--primary:hover {
  color: var(--text);
  background: var(--surface-3);
  border-color: var(--line-strong);
}

/* ---------- 视图切换 ---------- */
.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--hair);
  background: var(--surface);
  overflow: hidden;
}
.segmented__btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 12.5px; font-weight: 600;
  padding: 8px 12px;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--muted);
  background: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.segmented__btn:first-child { border-left: 0; }
.segmented__btn svg { font-size: 14px; }
.segmented__btn:hover { color: var(--text); background: var(--surface-2); }
.segmented__btn.is-active { color: #0b0b0d; background: var(--accent); }
.segmented__thumb { display: none; }   /* 扁平化：不再用滑动高亮块 */

/* =========================================================================
   主舞台布局
   ========================================================================= */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}
.stage[data-view="list"] { grid-template-columns: minmax(0, 1fr) 340px 340px; }

/* ---------- 网格板 ---------- */
.board {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--hair);
  background: var(--bg-2);
  overflow: hidden;
  animation: fade-up 0.6s 0.22s var(--ease) both;
}

.board__glow { display: none; }

/* 入场扫描线：扁平化后只保留一条细亮线，扫过一次即结束 */
.scanline {
  position: absolute; left: 0; right: 0; height: 2px;
  top: 0;
  background: #4a4a50;
  opacity: 0;
  pointer-events: none;
}
.board.is-scanning .scanline { animation: scan 0.9s var(--ease-soft) 1; }
@keyframes scan {
  0%   { opacity: 0; transform: translateY(0); }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(1050px); }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 14px;
}

/* ---------- 卡片 ----------
   外层 .card 负责悬停聚焦（不透明度），内层 .card__in 负责入场动画。
   注意：入场动画只作用于 transform，且 fill-mode 为 backwards，
   这样静止时不会留下 opacity 关键帧去覆盖聚焦的压暗规则。 */
.card {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s var(--ease-soft);
}

.card__in {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--hair);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.18s var(--ease-soft), background 0.18s;
  animation: card-in 0.42s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 26ms + 0.22s);
}

@keyframes card-in {
  0%   { transform: translateY(14px); }
  100% { transform: none; }
}

.card__badge,
.card__index {
  position: absolute; z-index: 3; top: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  border-radius: var(--hair);
}
.card__index {
  left: 8px;
  min-width: 22px; padding: 3px 5px;
  text-align: center;
  color: var(--text);
  background: rgba(8, 8, 10, 0.82);
  font-variant-numeric: tabular-nums;
}
.card__badge { right: 8px; padding: 3px 7px; color: #0b0b0d; background: var(--accent); }
.card__badge--note { color: #0b0b0d; background: #d8d8d8; }

.cover {
  position: relative;
  aspect-ratio: 460 / 215;
  overflow: hidden;
  background: #0e0e10;
  border-bottom: 1px solid var(--line);
}
.cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}
.cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.5) 100%);
}

/* 掠过封面的高光 */
.cover__shine {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.22) 50%, transparent 58%);
  transform: translateX(-130%);
  opacity: 0;
  pointer-events: none;
}

/* 悬停时出现的“查看详情” */
.card__more {
  position: absolute; z-index: 3;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 13px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em;
  white-space: nowrap;
  color: #0b0b0d;
  border-radius: var(--hair);
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.18s var(--ease-soft);
}
.grid .card.is-hot .card__more,
.grid .card:focus-visible .card__more { opacity: 1; pointer-events: auto; }
.card__more:hover { background: #ffffff; }

.card__body { padding: 9px 11px 11px; }
.card__title {
  margin: 0;
  font-size: 13px; font-weight: 700; line-height: 1.34;
  color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__sub {
  margin: 4px 0 0;
  font-size: 11px; line-height: 1.35;
  color: var(--dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card__tag { display: none; }   /* 扁平化：卡片上不再重复类型标签 */

/* ---------- 悬停聚焦：压暗当前之外的卡片 ---------- */
.grid.is-spotlight .card { opacity: 0.4; }
.grid.is-spotlight .card.is-hot,
.grid .card:focus-visible { opacity: 1; }
.grid .card.is-hot .card__in,
.grid .card:focus-visible .card__in { border-color: var(--line-strong); background: var(--surface-2); }
.grid .card.is-hot .cover img { transform: scale(1.05); }
.grid .card.is-hot .cover__shine { animation: shine 0.6s var(--ease-soft); }
.grid .card.is-hot .card__sub { color: var(--muted); }

@keyframes shine {
  0%   { transform: translateX(-130%); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateX(130%); opacity: 0; }
}

/* 选中态：只用一条左边框标记，不用发光 */
.card.is-selected .card__in { border-color: var(--line-strong); background: var(--surface-2); }
.card.is-selected .card__in::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 4;
  width: 3px;
  background: var(--accent);
}

/* ---------- 空状态 ---------- */
.empty {
  margin: 0;
  padding: 60px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--muted); font-size: 14px;
}
.link {
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--text);
  background: none; border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 0 0 3px; cursor: pointer;
}
.link:hover { border-bottom-color: var(--text); }

/* =========================================================================
   列表视图
   ========================================================================= */
.listpane {
  border: 1px solid var(--line);
  border-radius: var(--hair);
  background: var(--bg-2);
  overflow: hidden;
  animation: fade-up 0.4s var(--ease) both;
}

.listpane__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px; font-weight: 700;
}
.listpane__head em { color: var(--dim); font-style: normal; font-weight: 600; }
.listpane__hint { font-size: 11px; font-weight: 500; color: var(--dim); }

.glist {
  list-style: none;
  margin: 0; padding: 4px;
  max-height: min(66vh, 640px);
  overflow-y: auto;
}
.grow {
  --i: 0;
  display: grid;
  grid-template-columns: 26px 56px minmax(0, 1fr) auto;
  align-items: center; gap: 10px;
  padding: 6px 9px;
  border-radius: var(--hair);
  border: 0;
  border-left: 3px solid transparent;
  cursor: pointer;
  color: inherit;
  background: none;
  font: inherit;
  width: 100%;
  text-align: left;
  transition: background 0.14s;
  animation: row-in 0.3s var(--ease) both;
  animation-delay: calc(var(--i) * 18ms + 0.16s);
}
@keyframes row-in { from { opacity: 0; } to { opacity: 1; } }
.grow:hover, .grow:focus-visible { background: var(--surface-2); }
.grow.is-selected { background: var(--surface-2); border-left-color: var(--accent); }
.grow__num { font-size: 10.5px; font-variant-numeric: tabular-nums; color: var(--dim); text-align: right; }
.grow__thumb {
  width: 56px; aspect-ratio: 460 / 215;
  border-radius: var(--hair); overflow: hidden;
  background: #0e0e10;
  border: 1px solid var(--line);
}
.grow__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grow__name { font-size: 12.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grow__flag { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; color: var(--dim); }
.grow__flag i { width: 6px; height: 6px; background: var(--line-strong); }
.grow__flag--warn { color: var(--muted); }
.grow__flag--warn i { background: var(--accent); }

/* =========================================================================
   侧边详情面板 — 实心底色，避免按钮被“洗白”看不清
   ========================================================================= */
.detail {
  position: sticky; top: 68px;
  min-height: 200px;
  border: 1px solid var(--line);
  border-radius: var(--hair);
  background: var(--surface);
  overflow: hidden;
  animation: fade-up 0.6s 0.28s var(--ease) both;
}

.detail__empty {
  padding: 30px 18px;
  text-align: center;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.9;
}
.detail__empty b { display: block; color: var(--muted); font-size: 13.5px; margin-bottom: 6px; }
.detail__empty svg { font-size: 24px; stroke-width: 1.3; opacity: 0.5; }

.detail__inner { animation: fade-in 0.25s var(--ease-soft) both; }
.detail__cover {
  position: relative;
  aspect-ratio: 460 / 215;
  overflow: hidden;
  background: #0e0e10;
  border-bottom: 1px solid var(--line);
}
.detail__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail__body { padding: 13px 14px 16px; }
.detail__title { margin: 0 0 3px; font-size: 15px; font-weight: 800; line-height: 1.35; }
.detail__sub { margin: 0 0 11px; font-size: 11.5px; color: var(--dim); }

.meta { display: grid; gap: 7px; margin: 0 0 12px; }
.meta__row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; font-size: 11.5px; }
.meta__k { color: var(--dim); }
.meta__v { color: var(--text); overflow-wrap: anywhere; }

.detail__desc {
  margin: 0 0 13px;
  font-size: 12px; line-height: 1.7;
  color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.detail__actions { display: flex; gap: 8px; }
.detail__actions .btn { flex: 1; justify-content: center; font-size: 12px; padding: 8px 10px; }
.detail__note {
  flex: 1;
  padding: 8px 10px;
  font-size: 11.5px;
  color: var(--dim);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--hair);
}

.genrepill {
  display: inline-block;
  margin: 0 5px 5px 0;
  padding: 3px 8px;
  font-size: 10.5px; font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--hair);
  background: var(--surface-2);
}

/* =========================================================================
   弹窗
   ========================================================================= */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; }
.modal__scrim {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.72);
  animation: fade-in 0.2s var(--ease-soft) both;
}
/* 弹窗面板：只做一次短促位移，不再用 blur / 缩放，消除“抖动模糊”观感 */
.modal__panel {
  position: relative;
  width: min(940px, 100%);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--hair);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: modal-in 0.22s var(--ease-soft) both;
}
@keyframes modal-in {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: none; }
}
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: var(--hair);
  border: 1px solid var(--line-strong);
  background: rgba(8, 8, 10, 0.8);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.modal__close svg { font-size: 15px; }
.modal__close:hover { background: #ffffff; color: #0b0b0d; border-color: #ffffff; }

.modal__hero {
  position: relative;
  aspect-ratio: 460 / 200;
  overflow: hidden;
  background: #0e0e10;
  border-bottom: 1px solid var(--line);
}
.modal__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
}
.modal__heroText {
  position: absolute; left: 22px; right: 22px; bottom: 14px; z-index: 2;
  display: flex; flex-direction: column; gap: 7px;
}
.modal__title { margin: 0; font-size: clamp(19px, 2.4vw, 27px); font-weight: 800; letter-spacing: -0.01em; }
.modal__titleZh { margin: 0; font-size: 12.5px; color: #b4b4b8; }
.modal__body {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px;
  padding: 20px 22px 22px;
}
.modal__desc { margin: 0 0 15px; font-size: 13px; line-height: 1.75; color: var(--muted); }
.modal__specs { display: grid; gap: 9px; align-content: start; }
.modal__specs .meta__row { grid-template-columns: 76px minmax(0, 1fr); font-size: 12px; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 9px; }

/* =========================================================================
   Toast
   ========================================================================= */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 120;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px;
  font-size: 13px; font-weight: 600;
  color: #0b0b0d;
  border-radius: var(--hair);
  background: #e8e8e8;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, 14px);
  opacity: 0; pointer-events: none;
  transition: transform 0.22s var(--ease-soft), opacity 0.22s var(--ease-soft);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast::before { content: ""; width: 6px; height: 6px; background: #0b0b0d; }

/* =========================================================================
   页脚
   ========================================================================= */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 22px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--dim);
  animation: fade-up 0.6s 0.36s var(--ease) both;
}
.footer__keys { display: inline-flex; align-items: center; gap: 5px; }

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

/* =========================================================================
   响应式
   ========================================================================= */
@media (max-width: 1400px) {
  .stage[data-view="list"] { grid-template-columns: minmax(0, 1fr) 340px; }
  .stage[data-view="list"] .detail { display: none; }
}
@media (max-width: 1180px) {
  .stage, .stage[data-view="list"] { grid-template-columns: minmax(0, 1fr); }
  .detail { position: static; }
  .listpane { order: 2; }
  .glist { max-height: 420px; }
}
@media (max-width: 720px) {
  .shell { padding: 22px 14px 20px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .board { padding: 10px; }
  .toolbar { position: static; padding: 10px; gap: 9px; }
  .chips { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .chip { flex: 0 0 auto; }
  .toolbar__right { margin-left: 0; width: 100%; justify-content: space-between; }
  .modal__body { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .modal__hero { aspect-ratio: 460 / 230; }
  .grow { grid-template-columns: 22px 46px minmax(0, 1fr); }
  .grow__flag { display: none; }
}

/* =========================================================================
   无障碍 / 降低动效
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card, .chip, .grow, .masthead__sub, .masthead__title, .toolbar, .board, .detail, .footer { opacity: 1 !important; transform: none !important; }
}
