:root {
  --bg: #14161a;
  --panel: #1c1f26;
  --panel-2: #23272f;
  --line: #2f343d;
  --text: #e8eaee;
  --muted: #9aa3b0;
  --accent: #6ea8fe;
  --good: #4ade80;
  --bad: #f87171;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 14px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.head h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  min-height: 18px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.chip.strong { color: var(--text); }

.board-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px;
}

.board { width: 100%; aspect-ratio: 1 / 1; }

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}

.overlay[hidden] { display: none; }

.overlay-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  max-width: 300px;
  width: 100%;
}

.overlay-icon { font-size: 34px; line-height: 1; margin-bottom: 8px; }

.overlay-card h2 { margin: 0 0 6px; font-size: 18px; }
.overlay-card p { margin: 0 0 16px; color: var(--muted); font-size: 13px; }

.status { display: flex; flex-direction: column; gap: 10px; }

.status-line {
  margin: 0;
  font-size: 14px;
  min-height: 20px;
  color: var(--text);
}

.status-line.good { color: var(--good); }
.status-line.bad { color: var(--bad); }
.status-line.muted { color: var(--muted); }

.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  appearance: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #0d1117;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  font-weight: 500;
}

.btn:active { transform: translateY(1px); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat span { font-size: 17px; font-weight: 600; }
.stat label { font-size: 11px; color: var(--muted); }

.foot {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  padding-top: 6px;
}