:root {
  --bg: #0f1226;
  --bg2: #1a1f3d;
  --panel: #1e2547;
  --panel-line: #2c356a;
  --text: #f4f6ff;
  --muted: #9aa3d4;
  --accent: #ffcc4d;
  --accent2: #ff5e7e;
  --green: #3ddc84;
  --red: #ff5e7e;

  /* kleur per tiental, voor leesbaarheid op het bord */
  --d0: #ff6b6b;
  --d1: #ffa94d;
  --d2: #ffd43b;
  --d3: #a9e34b;
  --d4: #51cf66;
  --d5: #38d9a9;
  --d6: #4dabf7;
  --d7: #748ffc;
  --d8: #cc5de8;
  --d9: #f783ac;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 70% -10%, var(--bg2), var(--bg));
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  transition: transform .08s ease, filter .15s ease, background .15s ease;
}
button:active { transform: translateY(1px) scale(.99); }
button:disabled { opacity: .4; cursor: not-allowed; }

.tag-disconnected {
  position: fixed;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}

/* ====================== BORD (gedeeld) ====================== */
.board {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 800;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  border: 1px solid var(--panel-line);
  user-select: none;
  position: relative;
}
.cell.called {
  color: #1a1030;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.cell.called[data-d="0"] { background: var(--d0); }
.cell.called[data-d="1"] { background: var(--d1); }
.cell.called[data-d="2"] { background: var(--d2); }
.cell.called[data-d="3"] { background: var(--d3); }
.cell.called[data-d="4"] { background: var(--d4); }
.cell.called[data-d="5"] { background: var(--d5); }
.cell.called[data-d="6"] { background: var(--d6); }
.cell.called[data-d="7"] { background: var(--d7); }
.cell.called[data-d="8"] { background: var(--d8); }
.cell.called[data-d="9"] { background: var(--d9); }

.cell.current {
  outline: 3px solid #fff;
  outline-offset: 1px;
  animation: cellPulse 1.2s ease-in-out infinite;
  z-index: 2;
}
@keyframes cellPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
