#campaign-inventory-btn,
#debug-toggle-btn,
#save-hotspots-btn,
#debug-save-btn {
  position: fixed;
  z-index: 1000;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.68);
  color: rgba(255, 255, 255, 0.94);
  font: 700 11px/1 system-ui, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#debug-toggle-btn {
  right: calc(12px + env(safe-area-inset-right));
  bottom: calc(12px + env(safe-area-inset-bottom));
}

#campaign-inventory-btn {
  right: calc(12px + env(safe-area-inset-right));
  bottom: calc(64px + env(safe-area-inset-bottom));
}

#save-hotspots-btn,
#debug-save-btn {
  right: calc(64px + env(safe-area-inset-right));
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: none;
}

body.debug #save-hotspots-btn,
body.debug #debug-save-btn {
  display: block;
}

#campaign-inventory-btn:focus-visible,
#debug-toggle-btn:focus-visible,
#save-hotspots-btn:focus-visible,
#debug-save-btn:focus-visible {
  outline: 2px solid rgba(65, 229, 255, 0.95);
  outline-offset: 2px;
}

body.debug #debug-object-controls {
  bottom: calc(116px + env(safe-area-inset-bottom));
}

body:not(.debug) #save-hotspots-btn + .sync-badge {
  display: none;
}

.campaign-smoke-puff {
  position: fixed;
  left: 76vw;
  top: 84vh;
  z-index: 990;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.campaign-cigarette-ember {
  position: absolute;
  left: -8px;
  top: -5px;
  width: 16px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff5cf 0 10%, #ffb04f 34%, #ef5024 62%, rgba(117, 18, 7, 0) 76%);
  box-shadow: 0 0 8px rgba(255, 105, 35, 0.9), 0 0 20px rgba(255, 143, 52, 0.55);
  opacity: 0;
  animation: campaign-ember-inhale 720ms ease-in forwards;
}

.campaign-smoke-wisp {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 142px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(235, 240, 242, 0.38), rgba(207, 217, 221, 0.18) 42%, rgba(184, 194, 198, 0) 74%);
  filter: blur(7px);
  opacity: 0;
  transform-origin: 50% 100%;
  animation: campaign-smoke-drift var(--campaign-smoke-duration) ease-out var(--campaign-smoke-delay) 1 forwards;
}

@keyframes campaign-ember-inhale {
  0% { opacity: 0.12; transform: scale(0.55); filter: saturate(0.8); }
  68% { opacity: 1; transform: scale(1.22); filter: saturate(1.35); }
  100% { opacity: 0; transform: scale(0.82); filter: saturate(1); }
}

@keyframes campaign-smoke-drift {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.22) rotate(0deg); }
  16% { opacity: 0.5; }
  62% { opacity: 0.3; transform: translate3d(var(--campaign-smoke-x), -170px, 0) scale(0.94) rotate(16deg); }
  100% { opacity: 0; transform: translate3d(var(--campaign-smoke-x-far), -285px, 0) scale(1.34) rotate(-12deg); }
}

@media (prefers-reduced-motion: reduce) {
  .campaign-cigarette-ember { animation-duration: 240ms; }
  .campaign-smoke-wisp { animation-duration: 1.2s; }
}

/*
CRUMBFORGE CHANGE LOG
Modified: 2026-07-13T18:10:00.000Z
Summary: Add an ember inhale cue and larger, softly layered close-POV Campaign smoke.
*/
