:root {
  /* Zenest brand typeface (design system --av) */
  --av: "Nunito", "Avenir Next", "Avenir", system-ui, sans-serif;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: #1a1f45;
  font-family: var(--av);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

canvas#sky {
  position: fixed;
  inset: 0;
  display: block;
  touch-action: none;
}

#ui {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  pointer-events: none;
  transition: opacity 2s ease;
}

#brand {
  color: rgba(235, 238, 255, 0.5);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: lowercase;
}

#hud {
  display: flex;
  gap: 10px;
  align-items: center;
}

#counter, #muteBtn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  color: #e9ecff;
  font-size: 15px;
  font-weight: 600;
  padding: 7px 16px;
  line-height: 1;
}

#muteBtn {
  pointer-events: auto;
  cursor: pointer;
  font-family: inherit;
}
#muteBtn:hover { background: rgba(255, 255, 255, 0.16); }

#hint {
  position: fixed;
  left: 50%;
  bottom: 27vh;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(235, 238, 255, 0.62);
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  letter-spacing: 0.02em;
  pointer-events: none;
  animation: hintBreathe 4s ease-in-out infinite;
  transition: opacity 1.5s ease;
}
#hint.hidden { animation: none; opacity: 0; }

@keyframes hintBreathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}
