/* ============================================
   GYVYN SPLASH SCREEN
   Save to: css/splash.css
   ============================================ */

#gyvyn-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0A0806;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
}

#gyvyn-splash.splash-exit {
  animation: splashFadeOut .55s cubic-bezier(.77,0,.175,1) forwards;
}

@keyframes splashFadeOut {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); pointer-events: none; }
}

/* Gold line that draws across */
.splash-line {
  position: absolute;
  top: 50%;
  left: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, transparent, #CC8800, transparent);
  transform: translateY(-120px);
  animation: drawLine .8s cubic-bezier(.16,1,.3,1) .1s forwards;
}

@keyframes drawLine {
  0%   { width: 0; left: 50%; opacity: 0; }
  30%  { opacity: 1; }
  100% { width: 100%; left: 0; opacity: .6; }
}

/* Content block */
.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  animation: splashReveal .7s cubic-bezier(.16,1,.3,1) .75s forwards;
  padding: 0 24px;
}

@keyframes splashReveal {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Black-owned badge */
.splash-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #CC8800;
  background: rgba(204,136,0,.1);
  border: 1px solid rgba(204,136,0,.2);
  padding: 7px 16px;
  margin-bottom: 28px;
}

/* Main logo */
.splash-logo {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(72px, 18vw, 140px);
  letter-spacing: 18px;
  color: #F6F0E6;
  line-height: 1;
  margin-bottom: 0;
  text-indent: 18px;
}

/* Gold divider line */
.splash-divider {
  width: 48px;
  height: 2px;
  background: #CC8800;
  margin: 20px auto 20px;
  opacity: .7;
}

/* Tagline */
.splash-tagline {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(15px, 3.5vw, 20px);
  font-weight: 300;
  color: rgba(246,240,230,.55);
  letter-spacing: .5px;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Location */
.splash-location {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(246,240,230,.25);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* Enter button */
.splash-enter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 36px;
  background: #CC8800;
  color: #0A0806;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
  margin-bottom: 20px;
  min-height: 44px;
}

.splash-enter:hover {
  background: #E09A10;
  transform: translateY(-2px);
}

.splash-enter:active {
  transform: scale(.97);
}

/* Tap anywhere hint */
.splash-skip {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10px;
  color: rgba(246,240,230,.18);
  letter-spacing: 1px;
  cursor: pointer;
  animation: pulse 3s ease-in-out 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: .18; }
  50%      { opacity: .45; }
}

/* Corner grain texture overlay */
#gyvyn-splash::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  opacity: .018;
  pointer-events: none;
}

/* Progress bar at bottom */
#gyvyn-splash::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #CC8800;
  opacity: .4;
  animation: progressBar 2.5s linear .9s forwards;
  width: 0;
}

@keyframes progressBar {
  0%   { width: 0; }
  100% { width: 100%; }
}

/* Hidden state */
#gyvyn-splash.splash-hidden {
  display: none !important;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .splash-logo {
    letter-spacing: 12px;
    text-indent: 12px;
  }
  .splash-enter {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}
