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

html,
body {
  width: 100%;
  height: 100%;
}

body {
  background: transparent;
  cursor: grab;
  font-family: "Courier New", monospace;
  overflow: hidden;
}

body.dragging {
  cursor: grabbing;
}

canvas#three {
  display: block;
  left: 0;
  position: absolute;
  top: 0;
}

#ui {
  align-items: center;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  left: 50%;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  z-index: 20;
}

#hint {
  color: rgba(255, 255, 255, 0.28);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

#progress-bar {
  background: rgba(255, 255, 255, 0.07);
  height: 1px;
  overflow: hidden;
  width: 100px;
}

#progress-fill {
  background: linear-gradient(90deg, #4af, #f8a);
  height: 100%;
  transition: width 0.05s linear;
  width: 0%;
}

#annotation {
  align-items: center;
  display: flex;
  flex-direction: column;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 28px;
  transform: translateX(-50%);
  transition: opacity 0.6s ease;
  z-index: 30;
}

#annotation.visible {
  opacity: 1;
}

#ann-text {
  color: #d4c87a;
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 0 12px rgba(212, 200, 122, 0.4);
  white-space: nowrap;
}

#ann-text .species {
  text-decoration: underline;
}

#ann-text .common {
  color: rgba(212, 200, 122, 0.8);
  font-size: 13px;
  font-style: normal;
}

#arrow-canvas {
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  z-index: 29;
}

#cursor-ring {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  height: 32px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, border-color 0.15s;
  width: 32px;
  z-index: 100;
}

body.holding #cursor-ring {
  border-color: rgba(255, 140, 180, 0.5);
  height: 16px;
  width: 16px;
}

@media (pointer: coarse) {
  #cursor-ring {
    display: none;
  }
}
