:root{
  --bg: #0b0c10;
  --card: #12141c;
  --text: #e8e9ef;
  --muted: #a3a6b3;
  --border: #2a2e3d;
  --accent: #6aa6ff;
  --danger: #ff6a6a;
  --ok: #7dff8c;
}

*{ box-sizing: border-box; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
}

h1{ margin:0 0 6px 0; font-size: 28px; }
h2{ margin:0 0 10px 0; font-size: 18px; }
.muted{ color: var(--muted); }
.small{ font-size: 13px; }
.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.gap{ gap: 10px; }
.grow{ flex: 1; min-width: 260px; }
.right{ display:flex; align-items:center; gap: 10px; }
.spacer{ height: 14px; }

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-top: 14px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
}

.pill{
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
}

.label{
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0;
}

.side{
  width: 340px;
  max-width: 340px;
}

input{
  width: 100%;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f1118;
  color: var(--text);
  outline: none;
}

input:focus{
  border-color: #3c4766;
}

select{
  width: 100%;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f1118;
  color: var(--text);
  outline: none;
}

select:focus{
  border-color: #3c4766;
}

button{
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #1a1d2a;
  color: var(--text);
  cursor: pointer;
}

button:hover{
  border-color: #3c4766;
}

button.ghost{
  background: transparent;
}

.status{
  margin-top: 10px;
  min-height: 18px;
  font-size: 13px;
  color: var(--muted);
  white-space: pre-wrap;
}

.help{
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.viewToggle{
  margin-top: 10px;
  justify-content: flex-start;
}

.guessRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.guessRow:last-child{ border-bottom: none; }

.badge{
  font-size: 12px;
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--muted);
}

.score{
  font-variant-numeric: tabular-nums;
}

.best{
  color: var(--ok);
}

.table{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table td{
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.table tr:last-child td{ border-bottom: none; }
