:root {
  --bg: #fbf8f2;
  --card: #ffffff;
  --ink: #1f1d1a;
  --muted: #6b655c;
  --line: #e7e1d6;
  --accent: #e2572b;
  --accent-ink: #ffffff;
  --track: #efe8dc;
  --good: #2f7d4f;
  --bad: #b5452a;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --card: #211f1c;
    --ink: #f3efe8;
    --muted: #aaa298;
    --line: #36322c;
    --accent: #ff7a4d;
    --accent-ink: #1a1410;
    --track: #34302a;
    --good: #6cc48f;
    --bad: #ff8e6e;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
small { font-weight: normal; color: var(--muted); font-size: .8em; }
a { color: var(--accent); }

.hero { padding: 16px 0 8px; }
.kicker { margin: 0 0 6px; font-size: .85rem; color: var(--muted); letter-spacing: .04em; }
.hero h1 { font-size: clamp(1.6rem, 6.4vw, 2.1rem); font-weight: 800; }
.day { margin: 12px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.day-label { font-weight: 700; }
.day-num { font-size: 3rem; font-weight: 800; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.lead { margin: 8px 0 16px; color: var(--muted); }

.meters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .meters { grid-template-columns: 1fr; } }
.meter { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.meter-h { font-size: .85rem; color: var(--muted); font-weight: 600; }
.meter-val { margin: 2px 0 8px; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.meter-goal { font-size: .85rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.bar { height: 10px; background: var(--track); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; min-width: 0; background: var(--accent); border-radius: 999px; transition: width .6s ease; }
.bar.has-value span { min-width: 4px; }
.meter-sub { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 20px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid var(--accent);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (max-width: 560px) { .cta .btn { flex: 1 1 100%; } }
.updated { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; margin-top: 16px; }
.card h2 { font-size: 1.15rem; margin-bottom: 10px; }
.sub { font-size: .9rem; color: var(--muted); margin: 12px 0 4px; }
.note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.rows .name { min-width: 0; }
.rows .name a { font-weight: 700; }
.rows .handle, .rows .pending { display: block; font-size: .8rem; color: var(--muted); }
.rows .num { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows .num.unknown { color: var(--muted); font-weight: 600; }
.rows li.total { border-top: 2px solid var(--ink); font-weight: 800; }

.log { margin: 0; padding-left: 1.3em; }
.log li { margin: 4px 0; }
.log-done li::marker { color: var(--good); }
.log-failed li::marker { color: var(--bad); }
.log .empty { list-style: none; margin-left: -1.3em; color: var(--muted); font-size: .9rem; }

.works { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.works li { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.works .w-title { font-weight: 700; }
.works .w-desc { display: block; font-size: .85rem; color: var(--muted); }

.mission { border: 2px dashed var(--accent); text-align: center; }
.mission-text { font-size: 1.25rem; font-weight: 800; margin: 6px 0 16px; }
.mission-after { margin: 12px 0 0; font-weight: 600; }
.mission .note { text-align: left; }

.foot { margin-top: 28px; font-size: .78rem; color: var(--muted); }
.foot p { margin: 4px 0; }
.error { color: var(--bad); font-weight: 700; }
