* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow: hidden;
  background: #1a1a20;
  font-family: 'DM Mono', monospace;
  color: #ccc;
}

#canvas {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  cursor: grab;
}

#canvas:active {
  cursor: grabbing;
}

#controls {
  position: fixed;
  top: 16px;
  left: 16px;
  background: rgba(15, 15, 20, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  z-index: 10;
  backdrop-filter: blur(12px);
  min-width: 220px;
}

#controls h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 16px;
  color: #e8a87c;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.btn-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.btn-row button {
  flex: 1;
  padding: 8px 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: #ccc;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-row button:hover {
  background: rgba(232, 168, 124, 0.15);
  border-color: #e8a87c;
  color: #e8a87c;
}

.btn-row button:active {
  transform: scale(0.96);
}

.btn-row button.active {
  background: rgba(232, 168, 124, 0.2);
  border-color: #e8a87c;
  color: #e8a87c;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-top: 8px;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
}

.toggle-row input[type="checkbox"] {
  accent-color: #e8a87c;
}

.remix-link {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.2);
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  text-decoration: none;
  z-index: 10;
}

.remix-link:hover {
  color: rgba(255,255,255,0.4);
}

@media (max-width: 600px) {
  #controls {
    top: auto;
    bottom: 60px;
    left: 8px;
    right: 8px;
    padding: 14px;
    min-width: auto;
  }
  #controls h1 {
    font-size: 14px;
  }
}