.overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  cursor: pointer;
}

.fadeOut {
  animation: fadeOut 0.5s ease-in forwards;
  pointer-events: none;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.threeContainer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.threeContainer canvas {
  display: block;
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
  animation: scaleIn 0.6s ease-out 0.2s both;
  pointer-events: none;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.textContainer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.title {
  font-family: var(--font-pixel);
  font-size: clamp(1.5rem, 8vw, 3rem);
  margin: 0;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.titleLine {
  display: block;
  background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 2s linear infinite, slideUp 0.5s ease-out both;
  text-shadow: none;
}

.titleLine:nth-child(1) {
  animation-delay: 0s, 0.4s;
}

.titleLine:nth-child(2) {
  animation-delay: 0.1s, 0.5s;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subtitle {
  font-family: var(--font-pixel);
  font-size: clamp(0.6rem, 2.5vw, 1rem);
  color: var(--google-yellow);
  margin: 0;
  animation: slideUp 0.5s ease-out 0.8s both;
  text-shadow: 2px 2px 0 var(--border-dark);
  letter-spacing: 3px;
}

.hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-secondary);
  animation: bounce 1.5s ease-in-out infinite, fadeIn 0.5s ease-out 1.2s both;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hintIcon {
  font-size: 20px;
  animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.5rem;
  }
  .subtitle {
    font-size: 0.5rem;
    letter-spacing: 2px;
  }
  .hint {
    font-size: 8px;
  }
}
