:root {
  --bg: #0a0a0c;
  --surface: #141418;
  --border: #252530;
  --accent: #e63946;
  --text: #f0f0f0;
  --dim: #555566;
  --cell: 48px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#trail-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#grid {
  display: grid;
  grid-template-columns: repeat(8, var(--cell));
  grid-template-rows: repeat(4, var(--cell));
  gap: 2px;
  z-index: 1;
  position: relative;
}

.cell {
  width: var(--cell);
  height: var(--cell);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: none;
  position: relative;
}

.cell:hover {
  border-color: var(--dim);
}

.cell.active {
  background: var(--accent);
  border-color: var(--accent);
}

.cell.hit {
  box-shadow: 0 0 8px var(--accent);
}

#bypass-knob {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--dim);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
}

#bypass-knob:hover {
  border-color: var(--dim);
}

#bypass-knob.active {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}
