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

html, body {
  height: 100%;
  background: #000;
  color: #f2f2f2;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  overflow: hidden;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.75) 100%),
    rgba(0, 0, 0, 0.3);
}

main {
  position: relative;
  z-index: 2;
  /* Centered within the upper third of the screen. */
  height: 33.333%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 0 16px;
}

h1 {
  font-weight: 300;
  font-size: clamp(1.1rem, 3.2vw, 2rem);
  letter-spacing: 0.35em;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.6);
}

h1 .dot { opacity: 0.5; }

#viz {
  width: min(520px, 100%);
  height: 90px;
  display: block;
}

.sound {
  position: fixed;
  right: 24px;
  bottom: 20px;
  z-index: 3;
  background: none;
  border: 0;
  color: rgba(242, 242, 242, 0.5);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: color 0.2s;
}
.sound:hover { color: #f2f2f2; }

.enter {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  cursor: pointer;
  transition: opacity 1.2s ease;
}
.enter span {
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: rgba(242, 242, 242, 0.6);
  animation: pulse 2.4s ease-in-out infinite;
}
.enter.gone { opacity: 0; pointer-events: none; }

@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
