:root {
  --bg: #141414;
  --line: #2a2a2a;
  --ink: #ede6d8;
  --muted: #868686;
  --cream: #f3eada;
  --gold: #c6802c;
  --ok: #7ea83f;
  --bad: #e2574a;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  padding: 36px 44px 28px;
  min-width: 960px;
}

.bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: baseline; gap: 14px; }
.brand h1 { font-size: 21px; font-weight: 800; letter-spacing: 3px; }
.brand .sub {
  font-family: Consolas, monospace; font-size: 11px;
  letter-spacing: 2px; color: #6e6e6e;
}

.stat {
  margin-left: auto;
  font-family: Consolas, monospace;
  font-size: 13px; color: var(--muted);
}
.stat b { color: var(--ok); font-size: 16px; }
.stat i {
  display: block; font-style: normal; font-size: 10px;
  letter-spacing: 2px; color: #555; margin-top: 2px;
  text-align: right;
}

.section { margin-top: 30px; }

.section h2 {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 13px; font-weight: 600; color: #d8cfc0;
  padding-bottom: 10px; border-bottom: 1px solid #202020;
  margin-bottom: 16px;
}
.section h2 em {
  font-style: normal; font-family: Consolas, monospace;
  font-size: 10px; letter-spacing: 3px; color: #6a6a6a;
}
.section h2 span {
  margin-left: auto; font-family: Consolas, monospace;
  font-size: 11px; color: #5f5f5f;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 20px;
}
.section.wide .grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--cream);
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  transition: opacity .2s ease;
}
.card img {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  display: block;
}
.section.wide .card img { max-height: 220px; }

figcaption {
  margin-top: 9px;
  font-family: Consolas, monospace;
  font-size: 11px;
  color: #5a534a;
  letter-spacing: .2px;
  word-break: break-all;
  text-align: center;
}

.card.loading { opacity: .45; }
.card.failed {
  border-color: var(--bad);
  background: #2a1a1a;
}
.card.failed figcaption { color: var(--bad); }

.foot {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  font-family: Consolas, monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: #565656;
}
.foot span:last-child { margin-left: auto; }
.foot .bad { color: var(--bad); }
.foot .good { color: var(--ok); }
