/* --- WELCOME SCREEN STYLES --- */

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 60000;
  background: radial-gradient(circle at center, rgba(20,20,20,0.95) 0%, #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.welcome-overlay.visible {
  opacity: 1;
}

.welcome-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.welcome-content {
  width: 90%;
  max-width: 800px;
  background: linear-gradient(160deg, rgba(40, 40, 40, 0.9), rgba(10, 10, 10, 0.95));
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.8),
    0 0 30px rgba(var(--primary-color-rgb), 0.2),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.welcome-overlay.visible .welcome-content {
  transform: scale(1) translateY(0);
}

/* Decorative glow behind content */
.welcome-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(var(--primary-color-rgb), 0.15), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.welcome-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.welcome-logo-container {
  margin-bottom: 10px;
  position: relative;
}

.welcome-logo {
  width: 280px;
  height: 75px;
  background-color: var(--primary-color);
  -webkit-mask-image: url('6d-300.png');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url('6d-300.png');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

/* Shine effect on logo */
.welcome-logo::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: translate(-100%, -100%) rotate(25deg);
  animation: logoShine 3s infinite 1s;
}

@keyframes logoShine {
  0% { transform: translate(-100%, -100%) rotate(25deg); }
  20%, 100% { transform: translate(100%, 100%) rotate(25deg); }
}

.welcome-title {
  font-family: 'Cinzel Decorative', 'Abril Fatface', cursive;
  font-size: 2.5rem;
  margin: 10px 0 5px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.welcome-title .highlight {
  color: var(--primary-color);
}

.welcome-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  font-weight: 300;
  letter-spacing: 1px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  margin-bottom: 35px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(var(--primary-color-rgb), 0.5);
}

.feature-icon {
  font-size: 2rem;
  margin-right: 15px;
  line-height: 1;
}

.feature-text h3 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
}

.feature-text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

.welcome-enter-btn {
  background: var(--primary-color);
  color: #000; /* Contrast on primary */
  border: none;
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1.4rem;
  font-weight: 800;
  padding: 15px 50px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 
    0 0 20px rgba(var(--primary-color-rgb), 0.4),
    inset 0 1px 0 rgba(255,255,255,0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.welcome-enter-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(var(--primary-color-rgb), 0.6);
  background-color: var(--lighter-primary-color);
  color: #000;
}

.welcome-enter-btn:active {
  transform: scale(0.98);
}



@media (max-width: 768px) {
  .welcome-content {
    padding: 25px 20px;
    width: 92%;
  }
  .welcome-logo {
    width: 220px;
    height: 60px;
  }
  .welcome-title {
    font-size: 1.8rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 25px;
  }
  .feature-item {
    padding: 12px;
  }
  .feature-icon {
    font-size: 1.6rem;
  }
  .welcome-enter-btn {
    font-size: 1.1rem;
    padding: 12px 40px;
  }
}