:root {
  --bg: #12141a;
  --panel: #1a1d24;
  --panel-border: #262a33;
  --input-bg: #0f1116;
  --input-border: #2a2f3a;
  --ink: #f4f1e8;
  --muted: #9aa0ac;
  --faint: #5b6170;
  --cream: #eee3c8;
  --cream-ink: #1c1406;
  --red: #d94a3d;
  --red-soft: #ff8a7c;
  --red-bg: rgba(217, 74, 61, 0.16);
  --blue: #3d7fe0;
  --blue-soft: #8ab4f8;
  --blue-bg: rgba(61, 127, 224, 0.16);
  --neutral-tile: #a99a78;
  --assassin-tile: #15161a;
  --unrevealed-tile: #e9e2cf;
  --good: #8fd19e;
}

* { box-sizing: border-box; }

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

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
}

input {
  font-family: inherit;
}

input::placeholder { color: var(--faint); }

.page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 36px;
}

.col {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wordmark-dots {
  display: flex;
  gap: 4px;
}
.wordmark-dots span {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

h1.title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: var(--cream);
  color: var(--cream-ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.btn-secondary {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: transparent;
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
}

.btn-ghost {
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.field {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--ink);
  font-size: 14px;
}

.panel {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
}

.error-banner {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(217, 74, 61, 0.15);
  border: 1px solid var(--red);
  color: var(--red-soft);
  font-size: 13px;
}

.score-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.score-pill.active { box-shadow: 0 0 0 1.5px currentColor inset; }
.score-pill .dot { width: 7px; height: 7px; border-radius: 50%; }

.clue-banner {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
}
.clue-word {
  margin-top: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
}

.board-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: var(--cream-ink);
}
.tile span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: -0.1px;
  text-align: center;
  line-height: 1.1;
  text-transform: uppercase;
}
.tile.clickable { cursor: pointer; }
.tile.selected { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08), 0 0 0 2px var(--cream); }
.tile.revealed { opacity: 0.55; }
.tile .skull { position: absolute; top: 3px; right: 4px; font-size: 9px; }

.confirm-bar {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--panel);
  border: 1.5px solid var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-roster {
  border-radius: 14px;
  overflow: hidden;
}
.team-roster .head {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
}
.team-roster .body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.log-list {
  margin-top: 6px;
  max-height: 160px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 4px;
}
.log-list::-webkit-scrollbar { width: 6px; }
.log-list::-webkit-scrollbar-thumb { background: var(--panel-border); border-radius: 3px; }
.log-entry { font-size: 11.5px; line-height: 1.4; }

.label {
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
