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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #050505;
  color: #f5f5f5;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  user-select: none;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.demo-controls {
  position: fixed;
  bottom: 24px;
  left: 34px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(16, 16, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.ctrl-btn {
  padding: 6px 13px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.ctrl-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ctrl-btn.active {
  background: rgba(240, 116, 39, 0.22);
  color: #ff9d5c;
  box-shadow: inset 0 0 0 1px rgba(240, 116, 39, 0.45);
}

.ctrl-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.14);
  margin: 0 2px;
}

@media (max-width: 720px) {
  .demo-controls {
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
  }
}
