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

:root {
  --font-mono: "Azeret Mono", "Courier New", monospace;
}

@import url("https://fonts.googleapis.com/css2?family=Azeret+Mono:ital,wght@0,100..900;1,100..900&display=swap");
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050505;
  font-family: var(--font-mono);
  cursor: crosshair;
}

/* Voronoi */
#viz {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cell {
  cursor: crosshair;
  transition: fill 0.45s ease;
}

.cell-label {
  font-family: var(--font-mono);
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  transition: fill 0.45s ease;
}

/* Top left */
#site-name {
  position: fixed;
  top: 30px;
  left: 30px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  z-index: 10;
  pointer-events: none;
  user-select: none;
}

/* Bottom */
#info-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 30px 28px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 10;
  pointer-events: none;
}

#info-bar.visible {
  opacity: 1;
}

#info-name {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: bolder;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

#info-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 24px;
}

#info-desc {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
}

#info-tags {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tag {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 3px 8px;
}

/* Bottom right */
#hint {
  position: fixed;
  bottom: 24px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.3);
  z-index: 10;
  pointer-events: none;
  user-select: none;
  transition:
    opacity 0.3,
    ease;
}

#hint.hidden {
  opacity: 0;
}
