@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@300&display=swap');

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

body {
  background: #000;
  color: #fff;
  font-family: 'Courier New', monospace;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  user-select: none;
}

#sky-wrap {
  flex: 1;
  position: relative;
  min-height: 0;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#controls {
  flex-shrink: 0;
  padding: 14px 24px 16px;
  background: #070707;
  border-top: 1px solid #1a1a1a;
  display: flex;
  gap: 32px;
}

.ctrl {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  width: 36px;
  flex-shrink: 0;
}

input[type='range'] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: #2a2a2a;
  outline: none;
  border-radius: 1px;
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e09830;
  cursor: pointer;
}

input[type='range']::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e09830;
  cursor: pointer;
  border: none;
}

#live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e09830;
  flex-shrink: 0;
  align-self: center;
  opacity: 0.18;
  transition: opacity 0.4s;
}

#live-dot.live {
  opacity: 1;
  animation: live-pulse 2.5s ease-in-out infinite;
}

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

:root {
  --text-color: rgba(255, 255, 255, 0.72);
  --text-color-pulse: rgba(255, 240, 182, 0.72);
}

#site-title {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Mulish', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 2.8vw, 1.8rem);
  letter-spacing: 0.35em;
  color: var(--text-color);
  text-shadow:
    0 0 60px rgba(180, 210, 255, 0.5),
    0 0 18px rgba(180, 210, 255, 0.3),
    0 2px 8px rgba(0, 0, 15, 0.55);
  pointer-events: none;
  white-space: nowrap;
}

.val {
  font-size: 13px;
  color: #aaa;
  width: 76px;
  text-align: right;
  flex-shrink: 0;
}

@keyframes twinkle {
  0%,
  100% {
    filter: brightness(1);
  }
  10% {
    filter: brightness(5);
  }
  80% {
    opacity: 1;
  }
  85% {
    opacity: 0.5;
  }
  90% {
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    color: color-mix(
      in srgb,
      var(--text-color-pulse) 0%,
      var(--text-color) 100%
    );
  }
  50% {
    transform: translate(-50%, -50%) scale(1.01);
    color: color-mix(
      in srgb,
      var(--text-color-pulse) 100%,
      var(--text-color) 0%
    );
  }
  80% {
    transform: translate(-50%, -50%) scale(0.99);
  }
}
