/* style.css — the look of the board. Fixed dark theme, matching the approved design. */

:root {
  --bg: #1b1c1f;
  --tile: #36373d;
  --tile-border: #45474e;
  --tile-text: #f2f3f5;
  --tile-hover: #5a5c64;
  --green: #2f5a1f;
  --green-border: #4f9130;
  --green-text: #86c34f;
  --muted: #9aa0a6;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

body {
  background: var(--bg);
  color: var(--tile-text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

#app { width: 100%; max-width: 460px; }

.bar { display: flex; align-items: center; gap: 10px; }

.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }

.title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.name { font-weight: 600; font-size: 18px; }
.sub { font-size: 13px; color: var(--muted); }

.pill {
  font-size: 12px;
  color: var(--green-text);
  background: rgba(79, 145, 48, 0.18);
  border: 1px solid var(--green-border);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.cell {
  min-height: 84px;
  border-radius: 12px;
  border: 1px solid var(--tile-border);
  background: var(--tile);
  color: var(--tile-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  padding: 8px 6px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-wrap: break-word;
  word-break: break-word;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.cell:hover { border-color: var(--tile-hover); }
.cell.on {
  background: var(--green);
  border-color: var(--green-border);
  color: var(--green-text);
}

.banner {
  background: var(--green);
  border: 1px solid var(--green-border);
  color: var(--green-text);
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.foot { justify-content: space-between; }

.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.legend .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1.5px solid var(--tile-hover);
  margin-right: 6px;
  vertical-align: -2px;
}
.legend .dot.on { background: var(--green); border-color: var(--green-border); }

.btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--tile-border);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.btn:hover { border-color: var(--tile-hover); color: var(--tile-text); }

@media (max-width: 380px) {
  .cell { min-height: 74px; font-size: 13px; }
}
