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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #1a1a2e;
  color: #eee;
  min-height: 100vh;
}

#app {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
  color: #e94560;
}

#controls {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

#camera-btn,
.effect-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

#camera-btn {
  background: #e94560;
  color: #fff;
}

#camera-btn:hover:not(:disabled) {
  background: #ff6b81;
}

#camera-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.effect-btn {
  background: #2a2a4a;
  color: #aaa;
}

.effect-btn:hover {
  background: #3a3a5a;
}

.effect-btn.active {
  color: #fff;
  font-weight: bold;
}

.effect-btn.active[data-mode="rainbow"] {
  background: #6c5ce7;
}

.effect-btn.active[data-mode="fire"] {
  background: #e17055;
}

.effect-btn.active[data-mode="space"] {
  background: #0f3460;
}

.effect-btn.active[data-mode="invert"] {
  background: #2d6a4f;
}

#status {
  text-align: center;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: #aaa;
}

#canvas-container {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

#output {
  width: 100%;
  height: 100%;
  display: block;
}

#footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}
