html, body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
}

#stage {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.bug-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 110px;
  height: 110px;
  will-change: transform;
  cursor: pointer;
}


.bug-bob {
  width: 100%;
  height: 100%;
  animation: bob 0.6s infinite ease-in-out;
  transition: filter 0.15s ease;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(1.5px); }
}

.bug-wrapper:hover .bug-bob {
  filter: brightness(1.35);  
}

.bug-bob svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.leg path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round; 
}
.leg path.leg-halo {
  stroke: #fff;          
  stroke-width: 2.5;     
}
.leg path.leg-main {
  stroke: #111;          
  stroke-width: 2;
}



#hint {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #444;
  font-family: monospace;
  font-size: 12px;
}


#video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
#video-modal.hidden {
  display: none;
}
#video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}
#video-panel {
  position: relative;
  z-index: 1;
}
#video-player {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  background: #000;
}
#video-close {
  position: absolute;
  top: -36px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
