:root {
  color-scheme: dark;
  --felt: #12261c;
  --felt-2: #1a3326;
  --cream: #f3ead8;
  --cream-dim: #e4d7c0;
  --ink: #1c1712;
  --muted: #6b5e4e;
  --gold: #c9a36a;
  --gold-2: #e8d3a4;
  --bad: #c45c3e;
  --ok: #3d8f6a;
  --line: rgba(243, 234, 216, 0.16);
  --paper-line: rgba(28, 23, 18, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--felt);
  color: var(--cream);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.mast h1,
.verdict-hero h2,
.sec {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "Songti TC", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mast h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.15;
}

.lede {
  margin: 0 0 8px;
  color: var(--cream-dim);
  font-size: 15px;
  line-height: 1.65;
}

.period {
  margin: 0;
  color: var(--gold-2);
  font-size: 12px;
}

.verdict-hero {
  margin: 28px 0;
  padding: 22px 20px 18px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 2px;
}

.verdict-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.verdict-hero h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.25;
}

.verdict-body {
  margin: 0 0 18px;
  color: #3a3228;
  font-size: 14px;
  line-height: 1.7;
}

.kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--paper-line);
}

.kpi dt {
  font-size: 11px;
  color: var(--muted);
}

.kpi dd {
  margin: 4px 0 0;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 22px;
}

.kpi .bad { color: var(--bad); }

.sec {
  margin: 32px 0 8px;
  font-size: 22px;
}

.hint, .footnote {
  color: var(--cream-dim);
  font-size: 13px;
  line-height: 1.65;
}

.store-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.store-card {
  display: block;
  padding: 14px 14px 12px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--felt-2) 80%, black);
}

.store-card .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.store-card h3 {
  margin: 0;
  font-size: 16px;
}

.store-card .pct {
  font-family: "Songti SC", "STSong", serif;
  font-size: 22px;
}

.store-card .meta {
  margin: 6px 0 10px;
  color: var(--cream-dim);
  font-size: 12px;
}

.band {
  position: relative;
  height: 8px;
  background: rgba(243, 234, 216, 0.12);
}

.band .healthy {
  position: absolute;
  left: 20%;
  width: 20%;
  top: 0;
  bottom: 0;
  background: rgba(61, 143, 106, 0.45);
}

.band .mark {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 14px;
  background: var(--gold);
  transform: translateX(-1px);
}

.tag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  border: 1px solid currentColor;
}

.tag.acquire { color: var(--bad); }
.tag.healthy { color: var(--ok); }
.tag.retain { color: var(--gold); }

.detail {
  margin-top: 28px;
  padding: 18px;
  background: var(--cream);
  color: var(--ink);
}

.detail.hidden { display: none; }

.back {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.detail h2 {
  margin: 0 0 6px;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 26px;
}

.detail .sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.detail-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 16px;
}

.detail-kpis div {
  padding-top: 8px;
  border-top: 1px solid var(--paper-line);
}

.detail-kpis dt { font-size: 11px; color: var(--muted); }
.detail-kpis dd {
  margin: 4px 0 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 22px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  margin: 8px 0 6px;
}

.bars .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.bars .fill {
  background: #2b241c;
  min-height: 2px;
}

.bars .fill.warn { background: var(--bad); }
.bars .lbl {
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}

.note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: #3a3228;
}

.table-wrap { overflow-x: auto; margin-top: 12px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  padding: 8px 6px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

th:first-child, td:first-child { text-align: left; }

.detail table th, .detail table td {
  border-bottom-color: var(--paper-line);
}

.model ol {
  padding-left: 18px;
  color: var(--cream-dim);
  font-size: 14px;
  line-height: 1.75;
}

.model strong { color: var(--cream); }

.footnote { margin-top: 16px; opacity: 0.85; }
