html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #3b6365 0%, #0c2424 100%);
}

#canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}

.tooltip {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -100%);
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font: 12px/1.4 sans-serif;
  white-space: nowrap;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 30;
}

.tooltip.visible {
  opacity: 1;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 40;
}

.modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 21, 0.92);
}

.modal-content {
  position: relative;
  max-width: 720px;
  width: 90vw;
  max-height: 85vh;
  color: #f0f0f0;
  font: 16px/1.6 sans-serif;
}

.modal-scroll {
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #f0f0f0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-date {
  opacity: 0.6;
  font-size: 13px;
  margin-bottom: 12px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.modal-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.modal-body p {
  margin: 0 0 1em;
}

@media (max-width: 600px) {
  .modal-scroll {
    padding: 24px;
  }
}
