/* ============================================================
   VALORANT 战术地图点位库 · UI v3
   近黑底 + Valorant 红 + 冷青数据色 / 纸白 + 墨黑 + 红
   锐利几何 · 大字号 · 电影感立绘主视觉 · 高对比
   ============================================================ */

:root {
  color-scheme: light;

  --bg: #f0eee9;
  --surface: #ffffff;
  --surface-2: #f7f6f2;
  --surface-3: #efece6;
  --glass: rgba(255, 255, 255, 0.86);

  --line: rgba(14, 22, 33, 0.12);
  --line-2: rgba(14, 22, 33, 0.2);

  --text: #0e1621;
  --text-2: #46525f;
  --muted: #78838f;
  --dim: #9aa4ae;

  --red: #d92030;
  --red-2: #ff4055;
  --red-soft: rgba(217, 32, 48, 0.09);
  --on-red: #ffffff;
  --glow: rgba(217, 32, 48, 0.26);

  --cyan: #0b8296;
  --cyan-soft: rgba(11, 130, 150, 0.10);

  --shadow-sm: 0 1px 2px rgba(14, 22, 33, 0.06);
  --shadow-md: 0 12px 32px rgba(14, 22, 33, 0.10);
  --shadow-lg: 0 26px 60px rgba(14, 22, 33, 0.16);
  --ring: 0 0 0 1px rgba(217, 32, 48, 0.3), 0 0 0 5px rgba(217, 32, 48, 0.10);

  --art-bg: radial-gradient(70% 90% at 78% 40%, rgba(217, 32, 48, 0.14), transparent 70%), linear-gradient(120deg, #f7f6f2, #e9e6df);
  --media-bg: #12161c;
  --scrim: rgba(12, 16, 22, 0.94);
  --scrim-strong: rgba(6, 9, 13, 0.95);
  --scroll-track: rgba(14, 22, 33, 0.06);
  --scroll-thumb: #bcc3cc;

  --plate-scrim: linear-gradient(180deg, transparent, rgba(6, 9, 14, 0.94) 58%);
  --plate-text: #f6f7f9;
  --plate-sub: rgba(226, 232, 240, 0.66);

  --font: 'Inter', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Mono', 'Consolas', monospace;
}

html.theme-dark {
  color-scheme: dark;

  --bg: #06070a;
  --surface: #0e1116;
  --surface-2: #12161d;
  --surface-3: #171c24;
  --glass: rgba(10, 13, 18, 0.78);

  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);

  --text: #f4f5f7;
  --text-2: #a6b0bc;
  --muted: #6d7885;
  --dim: #4d5763;

  --red: #ff4655;
  --red-2: #ff6b78;
  --red-soft: rgba(255, 70, 85, 0.12);
  --on-red: #ffffff;
  --glow: rgba(255, 70, 85, 0.42);

  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.12);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.75);
  --ring: 0 0 0 1px rgba(255, 70, 85, 0.5), 0 0 0 5px rgba(255, 70, 85, 0.14), 0 0 34px rgba(255, 70, 85, 0.24);

  --art-bg: radial-gradient(70% 90% at 78% 40%, rgba(255, 70, 85, 0.22), transparent 72%), linear-gradient(120deg, #10141b, #0a0d12);
  --media-bg: #080a0e;
  --scrim: rgba(10, 13, 18, 0.94);
  --scrim-strong: rgba(4, 6, 9, 0.96);
  --scroll-track: rgba(0, 0, 0, 0.5);
  --scroll-thumb: #262d38;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); }
a { color: var(--red); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--red); color: var(--on-red); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--scroll-track); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 3px solid transparent; border-radius: 999px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--red); background-clip: padding-box; }

/* ============================ 背景 ============================ */
.canvas-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.canvas-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1000px 520px at 8% -10%, var(--red-soft), transparent 62%),
    radial-gradient(820px 460px at 98% 2%, var(--cyan-soft), transparent 66%);
}
.canvas-bg .blob { display: none; }
.canvas-bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.5;
  mask-image: radial-gradient(1200px 700px at 50% -10%, #000, transparent 78%);
}
html.theme-dark .canvas-bg .grid { opacity: 0.75; }
/* 颗粒，做电影感 */
.canvas-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes sweep { from { transform: translateX(-130%) skewX(-18deg); } to { transform: translateX(230%) skewX(-18deg); } }

/* ============================ 顶栏 ============================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 10px 24px;
  background: var(--glass);
  border-bottom: 1px solid var(--line-2);
  backdrop-filter: blur(22px) saturate(1.3);
  flex-wrap: wrap;
}
.topbar::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 132px; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--red-2), var(--red));
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  box-shadow: 0 10px 26px var(--glow);
}
.brand-mark span { font-family: var(--font-mono); font-size: 17px; font-weight: 700; color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.16; }
.brand-text strong { font-size: 16px; font-weight: 800; letter-spacing: 3px; }
.brand-text span { font-size: 11px; color: var(--muted); letter-spacing: 0.8px; text-transform: uppercase; }

.topbar-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.stat {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--muted);
  white-space: nowrap;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.stat b { font-family: var(--font-mono); color: var(--text); font-size: 14px; font-weight: 700; }
.stat.accent { color: var(--red); border-color: rgba(255, 70, 85, 0.35); }
.stat.accent b { color: var(--red); }
.stat.warn b { color: var(--cyan); }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar-progress { display: flex; align-items: center; gap: 10px; }
.tp-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.6px; color: var(--dim); }
.topbar-progress .bar { width: 116px; }
.tp-num { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); }

/* ============================ 按钮 ============================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  border: 1px solid transparent;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: transform 0.14s, box-shadow 0.22s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-130%) skewX(-18deg);
  pointer-events: none;
}
.btn:hover::after { animation: sweep 0.7s ease; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.38; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.btn-sm { padding: 8px 16px; font-size: 12px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%); }
.btn-lg { padding: 14px 30px; font-size: 14px; letter-spacing: 1.2px; }

.btn-primary {
  background: linear-gradient(135deg, var(--red-2), var(--red));
  color: var(--on-red);
  box-shadow: 0 12px 30px var(--glow);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 18px 40px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { background: var(--surface-2); color: var(--text-2); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--text); border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

.arr { width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }

.icon-btn {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: border-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.icon-btn:hover { color: var(--red); border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

/* ============================ 布局 ============================ */
.shell { position: relative; z-index: 1; display: flex; align-items: flex-start; flex: 1 0 auto; }

.sidebar {
  position: sticky;
  top: 64px;
  flex: none;
  width: 250px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 14px 26px;
  border-right: 1px solid var(--line);
  transition: width 0.26s ease, padding 0.26s ease;
}
.sidebar.collapsed { width: 72px; padding: 18px 10px 26px; }

.sb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; padding: 0 2px; }
.sb-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--dim); }

.sb-toggle {
  display: grid; gap: 4px;
  padding: 9px 9px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  cursor: pointer;
  flex: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.sb-toggle span { display: block; width: 13px; height: 1.6px; background: var(--text-2); }
.sb-toggle:hover { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

.sb-card, .sb-block {
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.sb-block { padding: 14px 12px; }

.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px 11px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: var(--text-2);
  transition: background 0.16s, color 0.16s;
}
.sb-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 2px; height: 0;
  background: var(--red);
  transform: translateY(-50%);
  transition: height 0.22s ease;
}
.sb-item:hover { background: var(--surface-2); color: var(--text); }
.sb-item > i { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--dim); flex: none; width: 16px; }
.sb-body { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; flex: 1; }
.sb-body b { font-size: 13px; font-weight: 700; letter-spacing: 0.4px; }
.sb-body em { font-style: normal; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-item.active { background: var(--red-soft); color: var(--text); }
.sb-item.active::before { height: 62%; box-shadow: 0 0 14px var(--glow); }
.sb-item.active > i { color: var(--red); }
.sb-item.active .sb-body b { color: var(--red); }

.sb-block-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.6px; color: var(--dim); }

.sb-filters { display: flex; flex-direction: column; gap: 2px; }
.sb-filter {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-left: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 12.5px;
  color: var(--text-2);
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.sb-filter:hover { background: var(--surface-2); color: var(--text); }
.sb-filter .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-filter .fnum { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.sb-filter img { width: 13px; height: 13px; object-fit: contain; opacity: 0.55; }
.sb-filter.on { border-left-color: var(--red); background: var(--red-soft); color: var(--red); font-weight: 700; }
.sb-filter.on .fnum { color: var(--red); }
.sb-filter.on img { opacity: 1; }

.sb-readout { display: flex; flex-direction: column; gap: 9px; }
.sb-row { display: flex; align-items: baseline; gap: 9px; font-size: 12px; color: var(--muted); }
.sb-row > span:first-child { flex: 1; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.sb-row b { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--text); }

.sidebar.collapsed .sb-title,
.sidebar.collapsed .sb-body,
.sidebar.collapsed [data-sb-block] { display: none; }
.sidebar.collapsed .sb-card { padding: 8px; }
.sidebar.collapsed .sb-item { justify-content: center; padding: 11px 0; }
.sidebar.collapsed .sb-item > i { width: auto; }
.sidebar.collapsed .sb-item .led { position: absolute; top: 6px; right: 6px; }

.led { display: inline-block; width: 6px; height: 6px; flex: none; background: var(--line-2); }
.led.on { background: var(--red); box-shadow: 0 0 10px var(--glow); animation: breathe 2.6s ease-in-out infinite; }
.led.warn { background: var(--cyan); box-shadow: 0 0 10px var(--cyan-soft); }
.led.done { background: var(--red-2); }

.bar { display: block; position: relative; height: 4px; background: var(--line); overflow: hidden; }
.bar > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--red), var(--red-2));
  box-shadow: 0 0 12px var(--glow);
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 主内容 ---------- */
.content { flex: 1; min-width: 0; padding: 26px 30px 46px; display: flex; flex-direction: column; }
.stage { animation: fadeUp 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; }

.stage-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.sh-left { display: flex; flex-direction: column; gap: 8px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.4px;
  color: var(--red);
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 9px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
  box-shadow: 0 0 16px var(--glow);
}
.stage-head h1 { margin: 0; font-size: 46px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.04; }
.stage-head .sub { margin: 0; font-size: 12.5px; color: var(--muted); letter-spacing: 0.3px; }
.stage-head .sub b { color: var(--text); font-weight: 700; }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.search-ico { position: relative; width: 12px; height: 12px; flex: none; border: 1.7px solid var(--muted); border-radius: 50%; }
.search-ico::after { content: ''; position: absolute; right: -4px; bottom: -3px; width: 6px; height: 1.7px; background: var(--muted); transform: rotate(45deg); }
.search input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-size: 13px; }
input::placeholder, textarea::placeholder { color: var(--dim); opacity: 1; }

.chipbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: all 0.16s;
}
.chip:hover { color: var(--text); border-color: var(--red); }
.chip.on { background: linear-gradient(135deg, var(--red-2), var(--red)); border-color: transparent; color: var(--on-red); box-shadow: 0 10px 26px var(--glow); }
.chip img { width: 13px; height: 13px; object-fit: contain; opacity: 0.7; }
.chip.on img { opacity: 1; filter: brightness(3); }

.grid { display: grid; gap: 14px; }

.stage-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.stage-foot .btn:first-child:not(:only-child) { margin-right: auto; }

.empty {
  padding: 54px 26px;
  border: 1px dashed var(--line-2);
  background: var(--surface-2);
  color: var(--text-2);
  text-align: center;
  font-size: 13px;
}
.empty small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }

/* ============================ 仪表盘卡片 ============================ */
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(206px, 1fr)); gap: 12px; margin-bottom: 24px; }
.dash-card {
  position: relative;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.22s, border-color 0.2s;
}
.dash-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent 70%);
  opacity: 0.85;
}
.dash-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.dash-card .dc-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.4px; color: var(--dim); text-transform: uppercase; }
.dash-card .dc-value { margin: 12px 0; font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.dash-card .dc-value small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 7px; letter-spacing: 0; }
.dash-card .dc-foot { display: flex; align-items: center; gap: 10px; }
.dash-card .dc-foot .bar { flex: 1; }
.dash-card .dc-note { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.dash-card.warn::before { background: linear-gradient(90deg, var(--cyan), transparent 70%); }
.dash-card.warn .dc-value { color: var(--cyan); }

/* ============================ 英雄 ============================ */
.role-group { margin-bottom: 28px; }
.role-group:last-child { margin-bottom: 2px; }
.role-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.role-head img { width: 15px; height: 15px; object-fit: contain; opacity: 0.6; }
.role-head h2 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase; }
.role-count { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.role-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

.grid-agents { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }

.agent-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s, box-shadow 0.24s;
}
.agent-card::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: translateX(-130%) skewX(-18deg);
  pointer-events: none;
}
.agent-card:hover::after { animation: sweep 0.8s ease; }
.agent-card:hover { transform: translateY(-5px); border-color: var(--red); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px var(--red); }
:root:not(.theme-dark) .agent-card:hover { box-shadow: 0 18px 40px rgba(14, 22, 33, 0.14), 0 0 0 1px var(--red); }
.agent-card.on { border-color: transparent; box-shadow: var(--ring); }
.agent-card:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.agent-card.on::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  z-index: 3;
  width: 26px; height: 26px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  box-shadow: 0 0 18px var(--glow);
}

.agent-card .thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 12px;
  overflow: hidden;
  background: var(--art-bg);
}
.agent-card .thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.6;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}
.agent-card .thumb img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.4));
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.agent-card:hover .thumb img { transform: translateY(-4px) scale(1.04); }
.agent-card .thumb .fallback { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: var(--line-2); }

.agent-card .meta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.agent-card .nm { font-size: 14px; font-weight: 700; letter-spacing: 0.6px; }
.agent-card.on .nm { color: var(--red); }

/* ============================ 英雄主视觉 ============================ */
.agent-detail {
  position: relative;
  margin-bottom: 26px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: fadeUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.agent-detail::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-2) 34%, transparent 78%);
  box-shadow: 0 0 20px var(--glow);
  z-index: 4;
}

.ah-main { position: relative; min-height: 330px; display: flex; align-items: center; overflow: hidden; }
.ah-glow {
  position: absolute;
  right: -8%; top: -30%;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-soft), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
}
.ah-art {
  position: absolute;
  right: 0; bottom: 0;
  width: 58%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 26%, #000 100%);
}
.ah-art img {
  max-width: 100%;
  max-height: 106%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.55));
  animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ah-info {
  position: relative;
  z-index: 2;
  max-width: 56%;
  padding: 34px 12px 34px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.ah-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border: 1px solid rgba(255, 70, 85, 0.4);
  background: var(--red-soft);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.ah-role img { width: 13px; height: 13px; object-fit: contain; }
.ah-info h2 {
  margin: 0;
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}
.ah-desc { margin: 0; max-width: 46ch; color: var(--text-2); font-size: 13px; line-height: 1.85; }

.ah-abilities {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.ability { position: relative; padding: 18px 18px 20px; background: var(--surface); transition: background 0.2s; }
.ability::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-2));
  box-shadow: 0 0 14px var(--glow);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.ability:hover { background: var(--surface-2); }
.ability:hover::before { width: 100%; }
.ability .ab-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ability img.ab-icon { width: 36px; height: 36px; object-fit: contain; }
.ability b { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: 0.6px; }
.ability p { margin: 7px 0 0; font-size: 12px; line-height: 1.72; color: var(--muted); }

.ab-key {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  flex: none;
  border: 1px solid var(--line-2);
  background: var(--surface-3);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
.ab-key.passive { width: auto; padding: 0 8px; font-size: 10.5px; }
.ab-key.hit {
  background: linear-gradient(135deg, var(--red-2), var(--red));
  border-color: transparent;
  color: var(--on-red);
  box-shadow: 0 8px 20px var(--glow);
}
.det-sub { margin: 24px 0 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 2.2px; color: var(--dim); text-transform: uppercase; }

/* ============================ 地图卡片 ============================ */
.grid-maps { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

.map-card {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s, box-shadow 0.24s;
}
.map-card:hover { transform: translateY(-5px); border-color: var(--red); box-shadow: 0 22px 46px rgba(0, 0, 0, 0.3); }
.map-card.on { border-color: transparent; box-shadow: var(--ring); }
.map-card:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.map-card img.cover { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.map-card:hover img.cover { transform: scale(1.07); }
.map-card .cover-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 18px; color: var(--muted);
  background: var(--surface-3);
}
.map-card .mc-idx {
  position: absolute;
  top: 10px; left: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.22);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.map-card .plate {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 46px 14px 13px;
  background: var(--plate-scrim);
}
.map-card .plate::before {
  content: '';
  position: absolute;
  left: 0; top: 12px; bottom: 0;
  width: 3px;
  background: var(--red);
  box-shadow: 0 0 14px var(--glow);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.map-card:hover .plate::before, .map-card.on .plate::before { transform: scaleY(1); }
.map-card .plate-l { display: block; min-width: 0; padding-left: 10px; }
.map-card .plate .nm { font-size: 21px; font-weight: 800; letter-spacing: 0.4px; line-height: 1.1; color: var(--plate-text); }
.map-card .plate .en { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.8px; color: var(--plate-sub); text-transform: uppercase; }
.map-card .coord {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.6px;
  color: var(--plate-sub);
  text-align: right;
  max-width: 46%;
  line-height: 1.4;
}
.map-card .badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--red-2), var(--red));
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

/* ============================ 阵营 ============================ */
.side-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; max-width: 1100px; }

.side-card {
  position: relative;
  padding: 52px 34px 44px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s, box-shadow 0.26s;
}
.side-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 14px, var(--line) 14px 15px);
  opacity: 0.5;
  mask-image: linear-gradient(120deg, #000, transparent 68%);
}
.side-card::after {
  content: '';
  position: absolute;
  right: -40px; bottom: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--wash), transparent 66%);
  transition: transform 0.3s;
}
.side-attack { --wash: var(--red-soft); --accent: var(--red); }
.side-defend { --wash: var(--cyan-soft); --accent: var(--cyan); }
.side-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28), 0 0 0 1px var(--accent); }
.side-card:hover::after { transform: scale(1.18); }

.side-glyph { position: absolute; top: 28px; right: 32px; font-size: 60px; line-height: 1; opacity: 0.1; transition: opacity 0.28s, transform 0.28s; }
.side-card:hover .side-glyph { opacity: 0.22; transform: translateX(8px) rotate(-6deg); }

.side-card .side-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
}
.side-card .side-tag::before { content: ''; width: 22px; height: 8px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%); }
.side-card strong { position: relative; display: block; margin: 14px 0 8px; font-size: 52px; font-weight: 800; letter-spacing: -1px; line-height: 1.08; }
.side-card em { position: relative; font-style: normal; font-size: 13px; color: var(--muted); }

/* ============================ 点位页 ============================ */
.context-bar {
  position: relative;
  padding: 0;
  margin-bottom: 22px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.context-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--map-cover, none);
  background-size: cover;
  background-position: center 34%;
  opacity: 0.09;
  filter: saturate(0.6);
  pointer-events: none;
}
html.theme-dark .context-bar::before { opacity: 0.16; }
.context-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red), transparent);
  box-shadow: 0 0 20px var(--glow);
}
.context-bar > * { position: relative; z-index: 1; }

.ctx-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 16px 20px 16px 24px; }
.ctx-item { display: flex; align-items: center; gap: 12px; }
.ctx-item img.ctx-agent { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4)); }
.ctx-item img.ctx-map { width: 96px; height: 54px; object-fit: cover; border: 1px solid var(--line-2); }
.ctx-item .lbl { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 2px; color: var(--dim); text-transform: uppercase; }
.ctx-item .val { font-size: 18px; font-weight: 800; letter-spacing: 0.2px; }
.ctx-item .val small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.4px; color: var(--muted); font-weight: 500; text-transform: uppercase; }
.ctx-swap { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.ctx-areas { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 11px 20px 12px 24px; border-top: 1px solid var(--line); }
.ca-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.6px; color: var(--dim); text-transform: uppercase; margin-right: 3px; }
.ca-chip {
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-2);
  background: var(--surface-2);
}
.ca-chip:hover { border-color: var(--cyan); color: var(--cyan); }

.side-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.side-badge.attack { background: linear-gradient(135deg, var(--red-2), var(--red)); color: var(--on-red); box-shadow: 0 12px 30px var(--glow); }
.side-badge.defend { background: linear-gradient(135deg, var(--cyan), #0a6b7d); color: #fff; }

.lineup-layout { display: grid; grid-template-columns: minmax(320px, 430px) 1fr; gap: 20px; align-items: start; }

.col-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.col-head h2 { margin: 0; flex: 1; font-size: 14px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.count-pill { font-family: var(--font-mono); font-size: 20px; font-weight: 800; color: var(--red); line-height: 1; }

.lineup-list { display: flex; flex-direction: column; gap: 8px; max-height: 64vh; overflow-y: auto; padding-right: 4px; }
.lineup-item {
  position: relative;
  width: 100%;
  padding: 14px 16px 14px 56px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s, border-color 0.2s, box-shadow 0.22s, background 0.2s;
}
.lineup-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.lineup-item:hover { transform: translateX(4px); border-color: var(--line-2); background: var(--surface-2); }
.lineup-item:hover::before { transform: scaleY(1); }
.lineup-item.on { border-color: var(--red); box-shadow: var(--ring); }
.lineup-item.on::before { transform: scaleY(1); box-shadow: 0 0 16px var(--glow); }
.lineup-item:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.li-idx {
  position: absolute;
  left: 14px; top: 12px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--line-2);
  transition: color 0.2s;
}
.lineup-item:hover .li-idx, .lineup-item.on .li-idx { color: var(--red); }
.lineup-item .li-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lineup-item .li-title { font-size: 14px; font-weight: 700; letter-spacing: 0.3px; }
.lineup-item .li-sub { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.8px;
  color: var(--text-2);
  white-space: nowrap;
  text-transform: uppercase;
}
.tag.type { border-color: rgba(255, 70, 85, 0.4); color: var(--red); background: var(--red-soft); }
.tag.media { border-color: rgba(34, 211, 238, 0.4); color: var(--cyan); background: var(--cyan-soft); }
.tag.slot img { width: 12px; height: 12px; object-fit: contain; }

.lineup-detail-col { min-height: 420px; }
.detail-card {
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: fadeUp 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.detail-hero { position: relative; background: var(--media-bg); }
.detail-hero img { width: 100%; max-height: 350px; object-fit: cover; display: block; cursor: zoom-in; }
.detail-hero video { width: 100%; max-height: 450px; display: block; background: #000; outline: none; }
.detail-hero .hero-shot { border-top: 1px solid var(--line); max-height: 320px; }
.detail-hero .hero-fallback {
  height: 172px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
  background: var(--surface-3);
}
.detail-body { padding: 22px 26px 26px; }

.detail-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.detail-title h2 { margin: 0 0 12px; font-size: 26px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.28; }
.detail-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.steps { display: grid; gap: 10px; }
.step-block { position: relative; padding: 16px 20px 17px; border: 1px solid var(--line); background: var(--surface-2); }
.step-block::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  box-shadow: 0 0 14px var(--glow);
}
.step-block.a::before { background: var(--red-2); box-shadow: none; }
.step-block.b::before { background: var(--cyan); box-shadow: none; }
.step-block .k { display: block; margin-bottom: 7px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; color: var(--red); text-transform: uppercase; }
.step-block .k b { display: inline-block; min-width: 24px; font-size: 12px; }
.step-block.a .k { color: var(--red-2); }
.step-block.b .k { color: var(--cyan); }
.step-block p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--text-2); }
.step-block.empty-v p { color: var(--dim); }

.detail-note {
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  background: var(--cyan-soft);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.78;
}
.detail-abilities { display: grid; grid-template-columns: repeat(auto-fit, minmax(242px, 1fr)); gap: 10px; }
.ab {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text-2);
}
.ab b { display: block; color: var(--text); font-weight: 700; font-size: 12.5px; }

.detail-placeholder {
  min-height: 430px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  border: 1px dashed var(--line-2);
  background: var(--surface-2);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
}
.detail-placeholder .ph-icon { font-size: 42px; color: var(--line-2); }

.zoomable { cursor: zoom-in; }

/* ============================ 悬浮按钮 ============================ */
.fab-wrap { position: fixed; right: 26px; bottom: 26px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border: none;
  cursor: pointer;
  background: linear-gradient(140deg, var(--red-2), var(--red));
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  box-shadow: 0 18px 40px var(--glow);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s;
}
.fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 26px 50px var(--glow); }
.fab:active { transform: translateY(0) scale(1); }
.fab-ico { position: relative; width: 20px; height: 20px; transition: transform 0.2s; }
.fab-ico::before, .fab-ico::after { content: ''; position: absolute; background: #fff; }
.fab-ico::before { left: 0; top: 9px; width: 20px; height: 2px; }
.fab-ico::after { left: 9px; top: 0; width: 2px; height: 20px; }
.fab.open .fab-ico { transform: rotate(45deg); }

.fab-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line-2);
  background: var(--scrim);
  backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.fab-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 15px;
  border: none;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  white-space: nowrap;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.fab-item:hover { background: var(--red-soft); color: var(--red); }
.fab-item .mono { font-size: 11px; color: var(--dim); }
.fab-item:hover .mono { color: var(--red); }

/* ============================ 灯箱 / 提示 / 页脚 ============================ */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--scrim-strong); backdrop-filter: blur(8px); }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; border: 1px solid rgba(255, 255, 255, 0.14); }
.lb-close { position: absolute; top: 20px; right: 26px; font-size: 20px; color: #fff; background: rgba(255, 255, 255, 0.08); width: 42px; height: 42px; }
.lb-close:hover { background: var(--red); color: #fff; }

.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  padding: 14px 24px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--red);
  background: var(--scrim);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
  animation: fadeUp 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.banner {
  margin-bottom: 20px;
  padding: 15px 20px;
  border: 1px solid rgba(255, 70, 85, 0.4);
  border-left: 3px solid var(--red);
  background: var(--red-soft);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}
.banner code { padding: 1px 7px; background: var(--surface); font-family: var(--font-mono); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
  padding: 24px 0 6px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.8px;
}

/* ============================ 响应式 ============================ */
@media (max-width: 1280px) {
}
@media (max-width: 1180px) {
  .ah-info { max-width: 62%; }
  .ah-info h2 { font-size: 44px; }
  .ah-art { width: 52%; }
}
@media (max-width: 1100px) {
  .lineup-layout { grid-template-columns: 1fr; }
  .lineup-list { max-height: none; }
  .topbar-progress { display: none; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 64px; z-index: 25; width: 250px; background: var(--glass); backdrop-filter: blur(22px); box-shadow: var(--shadow-lg); }
  .sidebar.collapsed { width: 0; padding: 0; border: none; }
  .content { padding: 20px 16px 46px; }
  .topbar { padding: 10px 16px; gap: 14px; }
  .stage-head h1 { font-size: 32px; }
  .stage-head { align-items: flex-start; }
  .search { min-width: 100%; }
  .grid-agents { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
  .grid-maps { grid-template-columns: 1fr; }
  .topbar-stats { display: none; }
  .ah-main { min-height: 0; flex-direction: column; align-items: stretch; }
  .ah-art { position: relative; width: 100%; height: 260px; mask-image: linear-gradient(180deg, #000 62%, transparent); }
  .ah-info { max-width: 100%; padding: 22px; }
  .ah-info h2 { font-size: 38px; }
  .ah-abilities { grid-template-columns: 1fr; }
  .side-card { padding: 40px 24px 34px; }
  .side-card strong { font-size: 38px; }
  .ctx-swap { margin-left: 0; }
  .detail-abilities { grid-template-columns: 1fr; }
  .fab-wrap { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

