:root {
  --bg: #050505;
  --panel: rgba(10, 15, 30, 0.85);
  --accent: #00ff88; /* Bio Green */
  --text: #a0a0a0;
  --font: 'Share Tech Mono', monospace;
}

body {
  margin: 0;
  background-color: var(--bg);
  overflow: hidden;
  font-family: var(--font);
  color: var(--text);
  user-select: none;
}

canvas {
  display: block;
  /* 粒子を光らせる */
  filter: contrast(1.2) brightness(1.2);
}

.ui-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

header {
  text-shadow: 0 0 10px var(--accent);
}

h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 2px;
  color: #fff;
}
.accent { color: var(--accent); }

.stats {
  font-size: 0.9rem;
  color: var(--accent);
  margin-top: 5px;
}

/* Controls Panel */
.controls-container {
  pointer-events: auto;
  background: var(--panel);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  width: 300px;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 5px;
}

#matrix-ui {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
  max-height: 200px;
  overflow-y: auto;
}

.rule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.color-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin: 0 5px;
}

input[type=range] {
  width: 100px;
  accent-color: var(--accent);
  cursor: pointer;
}

.buttons {
  display: flex;
  gap: 10px;
}

button {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font);
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.8rem;
}

button:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 15px var(--accent);
}