:root {
  --bg: #fbfaf7;
  --bg-raised: #ffffff;
  --text: #1c1c1a;
  --text-muted: #5b5b56;
  --border: #e2ded4;
  --accent: #7a4b2c;
  --accent-soft: #f1e6d8;
  --pill-preV1: #8a7a4a;
  --pill-live: #2f6e4f;
  --pill-on-track: #2f6e4f;
  --pill-watch: #8a5a00;
  --pill-blocked: #a33a32;
  --link: #7a4b2c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181a;
    --bg-raised: #1f2124;
    --text: #ece9e2;
    --text-muted: #a8a49a;
    --border: #33352f;
    --accent: #d9a441;
    --accent-soft: #2a2620;
    --pill-preV1: #c8b06a;
    --pill-live: #6bbf8c;
    --pill-on-track: #6bbf8c;
    --pill-watch: #e0b75c;
    --pill-blocked: #ed8178;
    --link: #d9a441;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

h1,
h2,
h3 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  color: var(--text);
}

.site-header {
  margin-bottom: 2.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 0.4rem;
}

h1 {
  font-size: 2.1rem;
  margin: 0 0 0.5rem;
}

.subtitle {
  color: var(--text-muted);
  margin: 0;
}

section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 1.4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 1.5rem 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

a {
  color: var(--link);
}

a:hover {
  text-decoration: none;
}

code {
  background: var(--accent-soft);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem;
  margin: 0 0 0.85rem;
  min-width: 0;
}

.status-posture {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  min-width: 0;
}

.status-pill.status-on-track {
  color: var(--pill-on-track);
}

.status-pill.status-watch {
  color: var(--pill-watch);
}

.status-pill.status-blocked {
  color: var(--pill-blocked);
}

.posture-reason {
  flex: 1 1 16rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.posture-set {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.status-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 1 1 27rem;
  gap: 0.5rem;
  min-width: 0;
}

.status-metric {
  border-left: 2px solid var(--border);
  padding-left: 0.6rem;
  min-width: 0;
}

.status-metric strong,
.status-metric span {
  display: block;
}

.status-metric strong {
  font-size: 1.2rem;
  line-height: 1.2;
}

.status-metric span {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.status-open-issues {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

.status-open-issues a {
  white-space: nowrap;
}

.deploy-status {
  flex: 0 1 auto;
  white-space: nowrap;
  font-size: 0.82rem;
}

.games-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
}

.game-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.game-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
}

.game-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--pill-preV1);
}

.status-pill.status-building,
.status-pill.status-maintenance {
  color: var(--pill-live);
}

.status-pill.status-gated {
  color: var(--pill-watch);
}

.status-pill.status-frozen {
  color: var(--pill-blocked);
}

.status-pill.status-paused {
  color: var(--pill-preV1);
}

.game-line {
  margin: 0.55rem 0 0;
}

.game-about {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.game-about > summary,
.full-changelog > summary {
  color: var(--link);
  cursor: pointer;
  min-height: 44px;
  padding: 0.65rem 0;
}

.game-about p {
  margin: 0 0 0.5rem;
}

.game-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
}

.attention-list ul.attention {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.attention-item {
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.attention-blocked,
.attention-notice {
  background: var(--bg-raised);
  border-color: var(--border);
}

.attention-kind {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.attention-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.3rem 0 0;
}

.recently-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-entry {
  border-left: 2px solid var(--border);
  padding-left: 1rem;
}

.recent-details > summary {
  cursor: pointer;
  min-height: 44px;
  padding: 0.35rem 0;
}

.recent-line {
  display: block;
}

.recent-date {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.recent-date::after {
  content: " · ";
}

.recent-summary {
  font-weight: 600;
}

.full-changelog {
  margin-top: 1.25rem;
}

.full-changelog > summary {
  font-weight: 600;
}

.changelog-groups {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
}

.changelog-category-heading {
  margin: 0 0 0.75rem;
}

.changelog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.changelog-more {
  display: block;
  margin: 1rem 0 0;
  padding: 0.5rem 0.9rem;
  min-height: 44px;
  background: var(--accent-soft);
  color: var(--link);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.changelog-more:hover {
  border-color: var(--accent);
}

.changelog-entry {
  border-left: 2px solid var(--border);
  padding-left: 1rem;
}

.changelog-date {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 0.2rem;
}

.changelog-summary {
  margin: 0;
  font-weight: 600;
}

.changelog-details {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.changelog-details > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--link);
  cursor: pointer;
}

.changelog-detail {
  margin: 0 0 0.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.reference-details > summary {
  border-bottom: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.4rem;
  font-weight: 600;
  min-height: 44px;
  padding: 0.25rem 0 0.5rem;
}

.reference-details-body {
  margin-top: 1rem;
}

@media (max-width: 32rem) {
  .status-metrics {
    grid-template-columns: 1fr;
  }
}

.links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.loading,
.empty {
  color: var(--text-muted);
  font-style: italic;
}

footer {
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
