/* =========================================================
   CYBER THEME - 项目统一设计令牌与可复用组件
   适用: 所有 personal-site 下的页面
   规则: 单一主色(cyan)锁定, 形状统一(切角 clip-path), 暗色锁定
   宇宙探索版: 深空背景 + 星场 + 银河带 + 星云 + 流星 (theme.css 仅样式, 逻辑在 fx.js)
   ========================================================= */

:root {
  /* 基底: 深空黑, 保留层次 */
  --bg: #06060d;
  --bg-2: #0a0a16;
  --surface: #111120;
  --surface-2: #16162a;

  /* 主色锁定: 霓虹青. 全站只此一个强调色 */
  --accent: #00f0ff;
  --accent-soft: rgba(0, 240, 255, 0.14);
  --accent-line: rgba(0, 240, 255, 0.35);

  /* 辅色: 仅用于赛博渐变, 不单独当强调 */
  --magenta: #ff2e88;

  /* 宇宙层颜色 */
  --space-deep: #03030a;
  --nebula-cyan: rgba(0, 200, 255, 0.18);
  --nebula-magenta: rgba(255, 46, 136, 0.12);
  --nebula-violet: rgba(120, 80, 255, 0.12);
  --star-hi: rgba(225, 247, 255, 0.95);

  /* 文字 */
  --text: #e8f7ff;
  --text-dim: #8aa0b0;
  --text-faint: #5a6c7a;

  /* 形状: 统一切角, 不要混用圆角 */
  --notch: 10px;
  --radius: 4px;

  /* 字体 */
  --font-display: 'Space Grotesk', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ---------- 背景: 深空径向辉光 ---------- */
.cyber-bg {
  position: relative;
  background:
    radial-gradient(1200px 820px at 72% 6%, rgba(0, 240, 255, 0.10), transparent 60%),
    radial-gradient(900px 700px at 10% 100%, rgba(255, 46, 136, 0.07), transparent 60%),
    radial-gradient(1500px 1100px at 50% 48%, #0a0c1c 0%, var(--space-deep) 72%);
  overflow-x: hidden;
}
/* 地表网格: 调淡, 退到深空之后, 仅作赛博标识 */
.cyber-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* 星云层: 模糊光斑, 缓慢漂移 (视差由 fx.js 施加到 .space-layer) */
.nebula {
  position: absolute;
  inset: -12%;
  pointer-events: none;
  background:
    radial-gradient(440px 440px at 22% 28%, var(--nebula-cyan), transparent 64%),
    radial-gradient(540px 540px at 80% 70%, var(--nebula-magenta), transparent 64%),
    radial-gradient(380px 380px at 62% 10%, var(--nebula-violet), transparent 64%),
    radial-gradient(420px 420px at 12% 82%, rgba(0, 240, 255, 0.08), transparent 64%);
  filter: blur(46px);
}

/* 银河带: 斜向发光雾带, 缓慢自转 (canvas 星带在其上做密集星点) */
.galaxy {
  position: absolute;
  inset: -25%;
  pointer-events: none;
  background:
    linear-gradient(118deg,
      transparent 35%,
      rgba(0, 200, 255, 0.11) 47%,
      rgba(150, 110, 255, 0.12) 53%,
      transparent 67%);
  filter: blur(40px);
  mix-blend-mode: screen;
  opacity: 0.85;
  transform-origin: 50% 50%;
}

/* 星场 canvas: 固定全屏, 内容之下 */
.space-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

/* 视差包裹层: fx.js 施加轻微 translate 制造深度 */
.space-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

/* 流星: 由 fx.js 动态 spawn, 斜划拖尾 */
.meteor {
  position: absolute;
  top: -8%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px 2px #ffffff, 0 0 18px 4px rgba(0, 240, 255, 0.7);
  opacity: 0;
  pointer-events: none;
}
.meteor::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 160px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(0, 240, 255, 0) 0%, rgba(0, 240, 255, 0.5) 35%, rgba(255, 255, 255, 0.98) 100%);
}
.meteor.go { animation: meteor-fly 1.1s ease-in forwards; }
@keyframes meteor-fly {
  0%   { opacity: 0; transform: translate(0, 0) rotate(18deg); }
  12%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--mx, -220px), var(--my, 560px)) rotate(18deg); }
}

/* 扫描线叠层 (极淡, 仅质感) */
.cyber-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.14) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  opacity: 0.45;
}

/* ---------- 导航 ---------- */
.cyber-nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 26px 16px 12px;
}
.cyber-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(17, 17, 32, 0.66);
  border: 1px solid var(--accent-line);
  padding: 7px 9px;
  backdrop-filter: blur(10px);
  clip-path: polygon(
    0 0,
    calc(100% - var(--notch)) 0,
    100% var(--notch),
    100% 100%,
    var(--notch) 100%,
    0 calc(100% - var(--notch))
  );
}
.cyber-nav-pill a {
  text-decoration: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 8px 15px;
  border-top: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, text-shadow 0.2s;
}
.cyber-nav-pill a:hover {
  color: var(--accent);
  border-top-color: rgba(0, 240, 255, 0.35);
}
.cyber-nav-pill a.active {
  color: var(--accent);
  background: transparent;
  border-top-color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}
.cyber-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin-left: 4px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  transition: filter 0.2s;
}
.cyber-icon-btn:hover {
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.55));
}
.cyber-icon-btn img { width: 17px; height: 17px; opacity: 0.82; }
.cyber-icon-btn svg { width: 17px; height: 17px; color: var(--text-dim); transition: color 0.2s; }
.cyber-icon-btn:hover svg { color: var(--accent); }

/* ---------- 按钮 ---------- */
.cyber-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 15px 28px;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  border: none;
  cursor: pointer;
  clip-path: polygon(
    0 0,
    calc(100% - var(--notch)) 0,
    100% var(--notch),
    100% 100%,
    var(--notch) 100%,
    0 calc(100% - var(--notch))
  );
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.cyber-btn:hover { transform: translateY(-2px); box-shadow: 0 0 26px var(--accent-soft); filter: brightness(1.08); }
.cyber-btn:active { transform: translateY(0) scale(0.98); }

.cyber-btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  box-shadow: inset 0 0 0 0 var(--accent);
}
.cyber-btn-ghost:hover { box-shadow: inset 0 0 22px var(--accent-soft), 0 0 18px var(--accent-soft); }

/* ---------- 卡片 / 面板 ---------- */
.cyber-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--accent-line);
  padding: 28px;
  clip-path: polygon(
    0 0,
    calc(100% - var(--notch)) 0,
    100% var(--notch),
    100% 100%,
    var(--notch) 100%,
    0 calc(100% - var(--notch))
  );
}
.cyber-card.accent {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.16), rgba(255, 46, 136, 0.10));
}

/* 霓虹标题 */
.neon {
  color: var(--text);
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.55);
}

/* 角标装饰: 卡片左上小三角, 统一形态 */
.cyber-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 14px; height: 14px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* ---------- 通用容器 ---------- */
.cyber-wrap {
  position: relative;
  z-index: 10;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* =========================================================
   动效系统 (受控, 尊重 reduced-motion, 触摸设备降级)
   fx.js 负责交互逻辑, 此处为样式与 keyframes
   ========================================================= */

/* 入场: 淡入 + 上浮 + 去模糊, 支持 --d 错落延迟 */
.fx-reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(7px);
  transition:
    opacity .85s cubic-bezier(.2,.7,.2,1),
    transform .85s cubic-bezier(.2,.7,.2,1),
    filter .85s ease;
  transition-delay: var(--d, 0s);
}
.fx-reveal.in { opacity: 1; transform: none; filter: none; }

/* 卡片入场: 仅淡入, transform 交给 tilt 变量接管, 不冲突 */
.fx-card {
  opacity: 0;
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: opacity .8s ease, box-shadow .3s, border-color .3s;
  transform-style: preserve-3d;
}
.fx-card.in { opacity: 1; }

/* 卡片 hover: 扫光 + 发光描边 (clip-path 兼容) */
.cyber-card.fx-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,.16), transparent);
  transform: translateX(-220%);
  pointer-events: none;
  z-index: 6;
}
.cyber-card.fx-card:hover::after { transform: translateX(260%); transition: transform .75s ease; }
.cyber-card.fx-card:hover {
  box-shadow: 0 0 0 1px var(--accent), 0 0 34px var(--accent-soft);
  border-color: var(--accent);
}

/* 数字滚动 */
.fx-num { font-variant-numeric: tabular-nums; }

/* 鼠标跟随光晕 (环境光, 不挡内容) */
.fx-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%),
    rgba(0,240,255,.10), transparent 42%);
}

/* 自定义光标 */
.fx-cursor, .fx-dot {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
}
.fx-cursor {
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid var(--accent-line);
  opacity: .7;
  transition: transform .12s ease, width .2s, height .2s, margin .2s, opacity .3s, border-color .2s;
  mix-blend-mode: screen;
}
.fx-dot {
  width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.fx-cursor.hot {
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  border-color: var(--accent);
  box-shadow: 0 0 22px var(--accent-soft);
}

/* 网格缓慢漂移 */
@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 56px 56px, 56px 56px; }
}
/* 星云缓慢呼吸漂移 */
@keyframes nebula-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: .85; }
  100% { transform: translate3d(2.5%, -2%, 0) scale(1.08); opacity: 1; }
}
/* 银河带缓慢自转 */
@keyframes galaxy-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 保留原有 flicker / pulse */
@keyframes cyber-flicker {
  0%, 19%, 21%, 100% { opacity: 1; }
  20% { opacity: 0.72; }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 14px var(--accent-soft); }
  50% { box-shadow: 0 0 30px var(--accent-soft); }
}
@media (prefers-reduced-motion: no-preference) {
  .neon.flicker { animation: cyber-flicker 6s infinite steps(1); }
  .pulse { animation: glow-pulse 3.2s ease-in-out infinite; }
  .cyber-bg::before { animation: grid-drift 22s linear infinite; }
  .nebula { animation: nebula-drift 28s ease-in-out infinite alternate; }
  .galaxy { animation: galaxy-spin 110s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .neon.flicker, .pulse, .nebula, .galaxy { animation: none; }
  .fx-reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .fx-card { opacity: 1 !important; transform: none !important; }
  .fx-glow, .fx-cursor, .fx-dot { display: none !important; }
}
/* 触摸设备关闭自定义光标 */
@media (hover: none), (pointer: coarse) {
  .fx-cursor, .fx-dot { display: none !important; }
}

/* =========================================================
   J.A.R.V.I.S. HUD 叠加层 — 钢铁侠风格全息界面 (与深空底共存)
   ========================================================= */
:root { --hud-blue: #2f9bff; }

.hud {
  position: fixed; inset: 0; z-index: 40;
  pointer-events: none;
  font-family: var(--font-mono);
}
.hud-corner {
  position: absolute; width: 26px; height: 26px;
  border: 2px solid var(--accent); opacity: .8;
}
.hud-corner.tl { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.hud-corner.tr { top: 16px; right: 16px; border-left: none; border-bottom: none; }
.hud-corner.bl { bottom: 16px; left: 16px; border-right: none; border-top: none; }
.hud-corner.br { bottom: 16px; right: 16px; border-left: none; border-top: none; }

.hud-readout {
  position: absolute;
  font-size: 12px; letter-spacing: .12em;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0,240,255,.6);
  text-transform: uppercase; white-space: nowrap; opacity: .85;
}
.hud-readout b { color: var(--hud-blue); }
.hud-tl { top: 22px; left: 52px; }
.hud-tr { top: 22px; right: 52px; }
.hud-bl { bottom: 22px; left: 52px; }
.hud-br { bottom: 22px; right: 52px; }
.hud-readout::after {
  content: '_'; margin-left: 2px;
  animation: hud-blink 1.1s steps(1) infinite;
}
@keyframes hud-blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }

/* 鼠标跟随雷达扫描: 替代照片静态环, 跟随光标做扫描 */
.hud-scanner {
  position: fixed; top: 0; left: 0;
  width: 75px; height: 75px;
  margin: -37.5px 0 0 -37.5px;
  z-index: 41; pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
  will-change: transform;
}
.hud-scanner.active { opacity: .92; }
.hud-scanner .scan-ring {
  position: absolute; inset: 0; border-radius: 50%;
}
.hud-scanner .r1 {
  border: 1px solid rgba(0,240,255,.28);
  box-shadow: 0 0 22px rgba(0,240,255,.15), inset 0 0 22px rgba(0,240,255,.10);
}
.hud-scanner .r2 {
  inset: 12px; border: 1px dashed rgba(47,155,255,.5);
  animation: hud-spin 14s linear infinite;
}
.hud-scanner .r3 {
  inset: 6px; border: none;
  background: conic-gradient(from 0deg,
    rgba(0,240,255,0) 0deg,
    rgba(0,240,255,0) 300deg,
    rgba(0,240,255,.18) 348deg,
    rgba(0,240,255,.55) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 36%, #000 37%);
          mask: radial-gradient(circle, transparent 36%, #000 37%);
  animation: hud-spin 3.6s linear infinite;
}
/* 扫描十字准星 + 中心点 */
.hud-scanner::before,
.hud-scanner::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  background: rgba(0,240,255,.35);
}
.hud-scanner::before { width: 1px; height: 9px; transform: translate(-50%, -50%); }
.hud-scanner::after { width: 9px; height: 1px; transform: translate(-50%, -50%); }
.hud-scanner .scan-dot {
  position: absolute; top: 50%; left: 50%;
  width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
@keyframes hud-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .hud-scanner .r2, .hud-scanner .r3 { animation: none !important; }
  .hud-readout::after { animation: none; }
  .core-ring { animation: none !important; }
}

/* 左侧固定 HUD 导轨: 贾维斯系统监控面板 (全屏界面语言) */
.hud-rail {
  position: fixed; left: 18px; top: 50%; transform: translateY(-50%);
  width: 92px;
  z-index: 40; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  font-family: var(--font-mono);
}
.rail-core { position: relative; width: 46px; height: 46px; display: grid; place-items: center; }
.core-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--accent-line); border-top-color: var(--accent);
  animation: hud-spin 3.4s linear infinite;
}
.core-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.rail-readouts { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.rail-row {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; text-align: center;
}
.rail-row .rl { color: var(--text-faint); }
.rail-row .rv { color: var(--accent); text-shadow: 0 0 8px rgba(0,240,255,.5); }
.rail-row .rv b { color: var(--hud-blue); font-variant-numeric: tabular-nums; }

/* 次级读数: 弱化, 用细分隔线与主读数拉开层级 */
.rail-mini {
  display: flex; flex-direction: column; gap: 5px;
  padding-top: 12px; width: 100%;
  border-top: 1px solid rgba(0,240,255,.16);
}
.rail-row.mini {
  font-size: 8px; letter-spacing: .2em; opacity: .58;
  flex-direction: row; justify-content: space-between; gap: 8px;
  text-align: left;
}
.rail-row.mini .rv { text-shadow: none; }

/* 圆形进度环: 替代原扁能量条 (贾维斯 CPU 监控既视感) */
.rail-gauge-row { align-items: center; gap: 8px; margin: 2px 0; }
.rail-gauge {
  --p: 42%;
  position: relative; width: 66px; height: 66px; border-radius: 50%;
  background: conic-gradient(var(--accent) var(--p), rgba(0,240,255,.12) 0);
  display: grid; place-items: center;
  box-shadow: 0 0 20px rgba(0,240,255,.26);
  transition: background .9s cubic-bezier(.2,.7,.2,1);
}
.rail-gauge::before {
  content: ''; position: absolute; inset: 6px; border-radius: 50%;
  background: var(--bg);
}
.rail-gauge::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid rgba(0,240,255,.18);
}
.rail-gauge .gauge-num {
  position: relative; z-index: 1;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--accent); text-shadow: 0 0 10px rgba(0,240,255,.6);
}
.rail-gauge .gauge-num b { color: var(--hud-blue); font-variant-numeric: tabular-nums; }

/* 活跃度波形: 5 根竖条, fx.js 随机起伏 */
.rail-wave { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-top: 4px; }
.rail-wave i {
  width: 3px; height: 30%; border-radius: 1px;
  background: var(--accent); box-shadow: 0 0 6px var(--accent);
  transition: height .25s ease;
}

/* Hero 启动自检终端: 贾维斯 boot 序列 (独立一行, 贴标题下方) */
.boot-line {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .12em;
  color: var(--text-dim);
  margin: 2px 0 0; width: fit-content;
  display: flex; align-items: center; gap: 8px;
  padding: 3px 12px 3px 10px;
  border-left: 2px solid var(--hud-blue);
  background: linear-gradient(90deg, rgba(47,155,255,.12), transparent 88%);
}
.boot-line .boot-prompt { color: var(--hud-blue); font-weight: 700; }
.boot-line .boot-text {
  color: var(--accent); text-shadow: 0 0 8px rgba(0,240,255,.5);
}
.boot-line .boot-text::after {
  content: '_'; margin-left: 3px; color: var(--accent);
  animation: hud-blink 1s steps(1) infinite;
}

@media (max-width: 760px) { .hud-readout, .hud-rail, .hud-scanner { display: none; } }

/* ---------- 数据带 (数字滚动载体) ---------- */
.stats {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4px 28px 28px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat {
  position: relative; overflow: hidden;
  padding: 16px 16px 16px 20px;
  border: 1px solid rgba(0,240,255,.12);
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(0,240,255,.04), transparent 70%);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
/* hover 扫光 */
.stat::after {
  content: '';
  position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(105deg,
    rgba(0,240,255,0) 0%, rgba(0,240,255,.14) 50%, rgba(0,240,255,0) 100%);
  transform: skewX(-14deg);
  transition: left .5s ease;
  pointer-events: none;
}
.stat:hover {
  transform: translateY(-3px);
  border-color: rgba(0,240,255,.45);
  background: linear-gradient(90deg, rgba(0,240,255,.09), transparent 75%);
  box-shadow: 0 12px 28px rgba(0,0,0,.35), 0 0 22px rgba(0,240,255,.12);
}
.stat:hover::after { left: 130%; }
.stat .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 22px rgba(0,240,255,.55);
}
.stat .l {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin-top: 8px;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat .n { font-size: 30px; }
}
