* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
canvas { display: block; }

#brand {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 1rem 1.4rem;
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: bold;
  color: rgba(140, 190, 255, 0.9);
  letter-spacing: 0.05em;
  user-select: none;
}

#legend {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10;
  padding: 0.6rem 1.2rem;
  font-family: monospace;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  user-select: none;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
}
.legend-item:hover {
  border-color: rgba(160, 200, 255, 0.4);
}
.legend-item.active {
  border-color: rgba(160, 200, 255, 0.7);
}
.legend-item.dimmed {
  opacity: 0.35;
}
.legend-icon {
  font-size: 0.7rem;
  line-height: 1.1;
  margin: 0;
}
.whale-icon { color: rgba(100, 170, 255, 0.8); }
.fish-icon { color: rgba(80, 200, 220, 0.8); }
.turtle-icon { color: rgba(140, 200, 120, 0.8); }
.legend-label {
  color: rgba(160, 200, 255, 0.75);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.legend-item:hover .legend-label {
  color: rgba(200, 225, 255, 0.95);
}
.legend-item.active .legend-label {
  color: #fff;
}

#desc-tooltip {
  position: fixed;
  z-index: 20;
  font-family: monospace;
  font-size: 0.7rem;
  color: rgba(220, 225, 230, 0.9);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
  transform: translateX(-50%);
}
