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

body {
  background: #0a0a0a;
  color: #e0e0e0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  height: 100vh;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

header {
  background: #1a1a2e;
  padding: 8px 16px;
  border-bottom: 2px solid #e74c3c;
  flex-shrink: 0;
}

header h1 {
  font-size: 18px;
  font-weight: 700;
  color: #f1c40f;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  margin-right: 24px;
}

.controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.control-group label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  font-weight: 600;
}

select, input[type="number"] {
  background: #16213e;
  border: 1px solid #333;
  color: #e0e0e0;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-family: monospace;
}

input[type="number"] {
  width: 70px;
}

select {
  min-width: 120px;
}

#startBtn {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

#startBtn:hover {
  background: #c0392b;
}

.speed-group {
  margin-left: 8px;
}

.speed-btn {
  background: #16213e;
  color: #888;
  border: 1px solid #333;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
  font-family: monospace;
  transition: all 0.2s;
}

.speed-btn:hover {
  border-color: #666;
  color: #ccc;
}

.speed-btn.active {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}

#status {
  font-size: 11px;
  color: #666;
  margin-top: 4px;
  font-family: monospace;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0a0a0a;
  overflow: hidden;
}

canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  header h1 {
    display: block;
    margin-bottom: 6px;
  }
  .controls {
    display: flex;
  }
}
