html {
  scrollbar-gutter: stable;
}

body {
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px;
  box-sizing: content-box;
}

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

ul,
ol {
  padding-left: 40px;
}

body.map-page {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

.pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 8px 0;
  font-size: 14px;
}

.pages a {
  color: var(--muted);
  text-decoration: none;
}

.pages a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.pages a.active {
  color: var(--fg);
  font-weight: 600;
}

.stats {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

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

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

.stats th {
  background: var(--surface);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.stats tbody tr:hover {
  background: var(--hover);
}

.stats td:first-child a {
  text-decoration: none;
}

.chart-canvas {
  position: relative;
  height: 480px;
  margin: 0 0 20px;
}

.inProgress {
  color: var(--status-chosen);
}

.voteFail {
  color: var(--status-not-accepted);
}

.verifyPass {
  color: var(--status-verify);
}

.verifyFail {
  color: var(--status-rejected);
}

.won {
  color: var(--status-won);
}

.finished {
  color: var(--status-accepted);
}


