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

html, body {
  width: 100%; height: 100%; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #000; color: #fff;
  user-select: none;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  position: fixed;
}

#container { position: relative; width: 100%; height: 100%; }

#video {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

#overlay {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  touch-action: none;
}

#info-bar {
  position: absolute; top: 8px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 12px;
  padding: 4px 16px;
  background: rgba(0,0,0,0.45); border-radius: 12px;
  font-size: 11px; backdrop-filter: blur(8px);
  z-index: 10; white-space: nowrap;
  pointer-events: none;
}
#fps { color: #0f0; }

#fx-selector {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px;
  z-index: 10;
}

.fx-btn {
  width: 40px; height: 40px;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(0,0,0,0.4);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.fx-btn.active {
  border-color: #fff;
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

#toolbar {
  position: absolute; left: 10px; bottom: 30px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 10;
}

.tool-btn {
  width: 40px; height: 40px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  font-size: 16px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}
.tool-btn:active { transform: scale(0.85); background: rgba(255,255,255,0.3); }

#hint {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  font-size: 11px; color: rgba(255,255,255,0.6);
  z-index: 10; white-space: nowrap;
  pointer-events: none;
}