* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #000;
}

#camera-feed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}

#info-overlay {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  text-align: center;
  z-index: 10;
  width: 90%;
  max-width: 400px;
  backdrop-filter: blur(6px);
}

#ui-container {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
  width: 90%;
  max-width: 400px;
  pointer-events: auto;
}

.main-action-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.main-action-btn.pinned {
  background: #d97706;
}

.secondary-btn {
  background: #475569;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
}

#control-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(15, 23, 42, 0.9);
  padding: 10px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  border: 1px solid #334155;
}

#control-panel.hidden {
  display: none;
}

.control-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.ctrl-btn {
  background: #1e293b;
  color: #fff;
  border: 1px solid #475569;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  flex: 1;
}

.ctrl-btn:active {
  background: #3b82f6;
}

.ctrl-btn.scale {
  background: #065f46;
  border-color: #059669;
}