.password-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0f0a0f;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.password-gate.active {
  opacity: 1;
  visibility: visible;
}

.password-gate__inner {
  text-align: center;
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 90%;
  position: relative;
}

.password-gate__smiley {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 20px rgba(255,215,0,0.4));
  display: block;
  animation: gateSmileyPulse 2s ease-in-out infinite;
}

@keyframes gateSmileyPulse {
  0%, 100% { transform: scale(1) rotate(-3deg); filter: drop-shadow(0 0 15px rgba(255,215,0,0.3)); }
  50% { transform: scale(1.05) rotate(3deg); filter: drop-shadow(0 0 30px rgba(255,215,0,0.6)); }
}

.password-gate__title {
  font-family: 'Righteous', 'Staatliches', sans-serif;
  font-size: 1.8rem;
  color: #ffd700;
  margin: 0.5rem 0 0.3rem;
  letter-spacing: 0.06em;
  text-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.password-gate__sub {
  font-family: 'Staatliches', sans-serif;
  color: #b8a9c4;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin: 0 0 1.8rem;
}

.password-gate__input-wrap {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.password-gate__input {
  background: rgba(255,215,0,0.06);
  border: 2px solid rgba(255,107,157,0.4);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-family: 'Staatliches', sans-serif;
  font-size: 1.2rem;
  color: #ffd700;
  letter-spacing: 0.1em;
  width: 180px;
  text-align: center;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.password-gate__input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255,215,0,0.2);
}

.password-gate__input::placeholder {
  color: #b8a9c4;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.password-gate__btn {
  background: linear-gradient(135deg, #ff6b9d, #ffd700);
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  font-family: 'Righteous', sans-serif;
  font-size: 1rem;
  color: #0f0a0f;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.03em;
}

.password-gate__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.password-gate__btn:active {
  transform: scale(0.97);
}

.password-gate__error {
  font-family: 'Staatliches', sans-serif;
  color: #ff6b9d;
  font-size: 0.9rem;
  margin-top: 1rem;
  min-height: 1.5rem;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.password-gate__error.visible {
  opacity: 1;
  animation: gateShake 0.4s ease;
}

@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.password-gate__hint {
  font-family: 'Spectral', serif;
  color: #b8a9c4;
  font-size: 0.8rem;
  margin-top: 1.5rem;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.password-gate__hint:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .password-gate__inner {
    padding: 2rem 1.2rem;
  }
  .password-gate__smiley {
    font-size: 3rem;
  }
  .password-gate__title {
    font-size: 1.4rem;
  }
  .password-gate__input {
    width: 140px;
    font-size: 1rem;
  }
}
