:root {
  --bg: #07080c;
  --ink: #e8ecf5;
  --dim: #6b7689;
  --line: #1a1e2a;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

#board {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.void-head {
  position: fixed;
  top: clamp(1rem, 4vw, 2.25rem);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

.void-head h1 {
  margin: 0;
  font-size: clamp(1rem, 3.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: #313a4d;
}

.void-head p {
  margin: 0.5rem 0 0;
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.void-tools {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 4vw, 2rem);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.1rem;
  padding: 0.6rem 1.1rem;
  background: rgba(12, 14, 20, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.void-tools button,
.void-tools a {
  background: none;
  border: 0;
  padding: 0;
  color: var(--dim);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.void-tools button:hover,
.void-tools a:hover,
.void-tools button:focus-visible,
.void-tools a:focus-visible { color: var(--ink); outline: none; }

.void-tools .presence-badge { color: var(--dim); }
.void-tools .presence-badge.is-online { color: #3ddc97; }

.void-hint {
  position: fixed;
  left: 50%;
  bottom: calc(clamp(1rem, 4vw, 2rem) + 3.4rem);
  transform: translateX(-50%);
  margin: 0;
  color: #2c3547;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  pointer-events: none;
  transition: opacity 600ms;
}

.void-hint.gone { opacity: 0; }
