/* ── Font ──────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Zalida';
  src: url('abyssia.otf.woff2/abyssia.otf.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Base ──────────────────────────────────────────────────────────────────── */
html, body {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

/* ── Grid canvas ───────────────────────────────────────────────────────────── */
#grid {
  position: fixed;
  inset: 0;
  display: block;
  z-index: 0;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

/* ── Title ─────────────────────────────────────────────────────────────────── */
.title {
  font-family: 'Zalida', 'Courier New', monospace;
  font-size: clamp(3.15rem, 9.9vw, 10.8rem);
  color: #00d4ff;
  text-align: center;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: clip;
  letter-spacing: 0.04em;
  line-height: 1.05;

  filter: none;
  transition: filter 0.35s ease-out;

  /* Initial state managed by JS */
  transform: translateY(-110vh);
  opacity: 0;
}

/* ── License info button ───────────────────────────────────────────────────── */
.license-btn {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 10;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 0, 0, 0.55);
  color: rgba(0, 212, 255, 0.6);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.license-btn:hover {
  border-color: rgba(0, 212, 255, 0.8);
  color: rgba(0, 212, 255, 1);
}

.license-modal {
  position: fixed;
  bottom: 3.6rem;
  right: 1.2rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: rgba(0, 212, 255, 0.75);
  line-height: 1.6;
  white-space: nowrap;
}
.license-modal a {
  color: rgba(0, 212, 255, 0.95);
  text-decoration: underline;
}
.license-modal[hidden] {
  display: none;
}

/* ── Settled: subtle static glow, fades in via transition ──────────────────── */
.title.settled {
  filter:
    drop-shadow(0 0 4px rgba(0, 210, 255, 0.45))
    drop-shadow(0 0 11px rgba(0, 180, 255, 0.28))
    drop-shadow(0 0 28px rgba(0, 130, 255, 0.14));
}
