﻿* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #000005;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
}

#canvas { display: block; }

/* ── Coming Soon overlay ──────────────────────────────────────────────────── */
#coming-soon {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  pointer-events: none;
  user-select: none;
  z-index: 10;
}

.subtitle {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(180, 200, 255, 0.55);
}

.glow-text {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 0 10px rgba(120, 180, 255, 0.9),
    0 0 30px rgba(80, 140, 255, 0.75),
    0 0 70px rgba(60, 110, 255, 0.55),
    0 0 130px rgba(40, 80, 220, 0.35);
  animation: pulse-glow 3s ease-in-out infinite;
}

.dots {
  display: inline-block;
  animation: blink-dots 1.8s steps(4, end) infinite;
  letter-spacing: 2px;
}

@keyframes blink-dots {
  0%   { opacity: 1; }
  25%  { opacity: 0.2; }
  50%  { opacity: 1; }
  75%  { opacity: 0.4; }
  100% { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(120, 180, 255, 0.9),
      0 0 30px rgba(80, 140, 255, 0.75),
      0 0 70px rgba(60, 110, 255, 0.55),
      0 0 130px rgba(40, 80, 220, 0.35);
  }
  50% {
    text-shadow:
      0 0 16px rgba(160, 210, 255, 1),
      0 0 50px rgba(100, 170, 255, 0.9),
      0 0 100px rgba(80, 140, 255, 0.7),
      0 0 180px rgba(60, 110, 255, 0.45);
  }
}

.tagline {
  font-size: 14px;
  color: rgba(160, 185, 230, 0.45);
  letter-spacing: 2px;
}

/* ── Control panel ────────────────────────────────────────────────────────── */
#ui {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 18px;
  min-width: 210px;
  backdrop-filter: blur(8px);
  z-index: 20;
}

#ui h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffd700;
  margin-bottom: 12px;
}

.ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.ctrl label { font-size: 12px; color: #aaa; white-space: nowrap; }

input[type=range] {
  -webkit-appearance: none;
  width: 90px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #ffd700;
  border-radius: 50%;
  cursor: pointer;
}

.val { font-size: 12px; color: #ffd700; min-width: 30px; text-align: right; }

.btn {
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.3);
  color: #ffd700;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
  transition: background 0.2s;
}

.btn:hover { background: rgba(255,215,0,0.25); }

/* ── Tooltip ──────────────────────────────────────────────────────────────── */
#tooltip {
  position: fixed;
  pointer-events: none;
  background: rgba(0,0,0,0.88);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 12px;
  line-height: 1.7;
  display: none;
  backdrop-filter: blur(6px);
  z-index: 30;
}

#tip-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
#tip-body  { color: #bbb; }
#tip-body span { color: #fff; }

/* ── Date bar ─────────────────────────────────────────────────────────────── */
#datebar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 5px 18px;
  font-size: 12px;
  color: #aaa;
  backdrop-filter: blur(6px);
  letter-spacing: 1px;
  white-space: nowrap;
  z-index: 20;
}

#datebar span { color: #ffd700; }
