/* ==========================================================================
   Apple Iconic Cursive "hello" Intro Screen (Preloader)
   ========================================================================== */

.apple-loader-lock {
  overflow: hidden !important;
  height: 100vh !important;
  touch-action: none !important;
}

#apple-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  /* Authentic Apple mesh gradient inspired by Monterey / iMac "Hello" branding */
  background: 
    radial-gradient(circle at 20% 25%, rgba(33, 90, 86, 0.95) 0%, transparent 55%),
    radial-gradient(circle at 82% 20%, rgba(46, 75, 115, 0.95) 0%, transparent 60%),
    radial-gradient(circle at 85% 82%, rgba(186, 95, 45, 0.95) 0%, transparent 55%),
    radial-gradient(circle at 32% 78%, rgba(105, 58, 36, 0.75) 0%, transparent 50%),
    #13222a;
  z-index: 99999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  will-change: opacity;
  overflow: hidden;
}

/* Subtle background ambient breathing */
#apple-loader::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: 
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 65%);
  animation: appleAmbientBreathe 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes appleAmbientBreathe {
  0% { transform: scale(0.96) translate(0, 0); opacity: 0.6; }
  100% { transform: scale(1.04) translate(10px, -8px); opacity: 1; }
}

.apple-loader-stage {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  width: 100%;
}

/* Cursive Apple SVG word wrapper */
.apple-loader-svg-container {
  width: clamp(280px, 50vw, 560px);
  height: clamp(120px, 20vh, 210px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.apple-loader-svg-container svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.45));
}

.apple-loader-svg-container path {
  fill: none;
  stroke: #ffffff !important;
  stroke-width: 55px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
