html,
body {
  margin: 0;
  padding: 0;
  border: none;
  background: #000;
  /* or your scene background color */
  overflow: hidden;
  /* optional: prevents scrollbars */
  height: 100%;
  width: 100%;
}

canvas {
  display: block;
  /* removes inline-block whitespace border */
}

#legend {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 8px;
  max-width: 240px;
  line-height: 1.4;
  z-index: 1000;
  user-select: none;
  transition: opacity 0.3s ease;
}

#legend.hidden {
  opacity: 0;
  pointer-events: none;
}

#legend h4 {
  margin: 0 0 6px 0;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 3px;
}

#pushTheDoor {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, #0d0d0d 0%, #000000 80%);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  font-family: 'CenturyGothic', Arial, sans-serif;
  cursor: pointer;
  transition: opacity 1.2s ease;
}

#pushTheDoor.fade-out {
  opacity: 0;
  pointer-events: none;
}

#pushTheDoor .ptd-content {
  text-align: center;
  color: white;
}

#pushTheDoor h1 {
  font-size: 2.3em;
  letter-spacing: 0.1em;
  font-weight: bold;
  margin-bottom: 0.2em;
}

#pushTheDoor p {
  opacity: 0.8;
  font-size: 0.95em;
  margin-top: 0;
}


.sound-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.7);
  margin: 0 auto 20px auto;
  animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 0.6; }
}


#pushTheDoor:active .sound-circle {
  transform: scale(0.9);
  opacity: 0.4;
}

#app {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

#app.active {
  opacity: 1;
}

#logoArcana {
  width: 200px; /* adjust as needed */
  height: auto;
  margin-bottom: 20px;
  opacity: 0.85;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.15));
  transition: transform 0.8s ease, opacity 1.2s ease;
  filter: invert(1);
}

/* Slight hover pulse on desktop */
#pushTheDoor:hover #logoArcana {
  transform: scale(1.06);
  opacity: 1;
}

/* Active press feedback */
#pushTheDoor:active #logoArcana {
  transform: scale(0.95);
  opacity: 0.5;
}

/* Breathing animation */
@keyframes logoPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.20); /* Bigger pulse */
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

#logoArcana {
  width: 240px; /* Increase size a bit */
  filter: invert(1) drop-shadow(0 0 14px rgba(255,255,255,0.35));
  animation: logoPulse 2.4s infinite ease-in-out;
  transition: transform 0.5s ease, opacity 0.5s ease;
  pointer-events: none; /* So taps trigger overlay */
}

/* Stronger impact when pressing to enter */
#pushTheDoor:active #logoArcana {
  transform: scale(1.25);
  opacity: 0.5;
  filter: invert(1) drop-shadow(0 0 35px rgba(255,255,255,0.9));
}
#pushTheDoor:hover #logoArcana {
  filter: invert(1) drop-shadow(0 0 24px rgba(255,255,255,0.7));
}