html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #02030a;
}

#space {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Appears ~10 s after the supernova */
#reset {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 22px;
  font: 500 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.2em;
  color: #e9ecff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0s linear 0.8s, background 0.2s;
}

#reset.show {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0s, background 0.2s;
}

#reset:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- Name header ---------- */
#masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: clamp(18px, 3.5vh, 36px) 16px 0;
  text-align: center;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  color: #f3f5ff;
  text-shadow: 0 0 24px rgba(2, 3, 10, 0.9), 0 0 4px rgba(2, 3, 10, 0.8);
}

#masthead h1 {
  margin: 0;
  font-size: clamp(30px, 5.2vw, 64px);
  font-weight: 200;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
}

#masthead .tagline {
  margin: clamp(6px, 1.2vh, 12px) 0 0;
  font-size: clamp(11px, 1.3vw, 15px);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(225, 230, 255, 0.62);
}

#masthead .tagline span {
  margin: 0 0.5em;
  color: rgba(255, 196, 110, 0.85);
}

/* ---------- One-time hint ---------- */
#hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 28px;
  margin: 0;
  text-align: center;
  pointer-events: none;
  font: 400 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.18em;
  color: rgba(225, 230, 255, 0.55);
  opacity: 0;
  transition: opacity 1.2s ease 1.5s;
}

#hint.show {
  opacity: 1;
}

#hint.gone {
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* ---------- Contact icons ---------- */
#contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  gap: 18px;
}

#contact a {
  display: block;
  width: 22px;
  height: 22px;
  color: rgba(225, 230, 255, 0.6);
  transition: color 0.2s, transform 0.2s;
}

#contact a:hover,
#contact a:focus-visible {
  color: #fff;
  transform: translateY(-2px);
}

#contact svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 600px) {
  #hint {
    bottom: 64px;
    font-size: 12px;
    letter-spacing: 0.12em;
  }
}
