/* dezmirean.ro — Clean rewrite 2026-02-26 */

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #030308; font-family: 'Georgia', serif; }

/* Canvas */
canvas { display: block; cursor: grab; }
canvas:active { cursor: grabbing; }
body.hovering canvas { cursor: pointer; }

/* Loading screen */
.loader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #030308; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 24px;
  transition: opacity 0.6s ease;
}
.loader.fade-out { opacity: 0; pointer-events: none; }
.loader-ring {
  width: 48px; height: 48px;
  border: 2px solid rgba(255,255,255,0.08);
  border-top-color: rgba(255,255,255,0.35);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}
.loader-bar-track {
  width: 120px; height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px; overflow: hidden;
}
.loader-bar-fill {
  width: 0%; height: 100%;
  background: rgba(255,255,255,0.3);
  transition: width 0.3s ease;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Transition whiteout overlay */
.transition-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: white; opacity: 0; z-index: 50;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.transition-overlay.active { opacity: 1; }

/* Overlay — fixed full-screen, pass-through for canvas interaction */
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10; }

/* Family name — bottom of page, above hint */
.title {
  position: absolute;
  bottom: 122px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.title.visible { opacity: 1; }

/* Hint text — very bottom */
.hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.25);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 1.5s ease;
  font-family: system-ui, -apple-system, sans-serif;
}
.hint.visible { opacity: 1; }
.hint.hidden { opacity: 0; }

/* Hover labels — names + roles, vertically centered */
.label {
  position: absolute;
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.label.visible { opacity: 1; }
.label-left { left: 8%; top: 50%; transform: translateY(-50%) translateX(-8px); }
.label-left.visible { transform: translateY(-50%) translateX(0); }
.label-right { right: 8%; top: 50%; transform: translateY(-50%) translateX(8px); text-align: right; }
.label-right.visible { transform: translateY(-50%) translateX(0); }
.label-left .label-sub { color: #ff7eb3; }
.label-right .label-sub { color: #5eead4; }
.label-sub {
  display: block;
  font-size: 1rem;
  margin-top: 6px;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.08em;
}

/* Audio toggle — bottom right */
.audio-toggle {
  position: absolute;
  bottom: 12px;
  right: 28px;
  pointer-events: auto;
  cursor: pointer;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: all 0.3s ease;
}
.audio-toggle:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); }
/* Mobile */
@media (max-width: 768px) {
  .title { font-size: 1.2rem; letter-spacing: 0.25em; bottom: 60px; }
  .label { font-size: 1.4rem; }
  .label-sub { font-size: 1rem; }
  .label-left { left: 5%; }
  .label-right { right: 5%; }
}
