/* =====================================================
   Aurora Rift Studio — Minimal Global Stylesheet
   Tailored for a static, elegant glow aesthetic
   ===================================================== */

/* -------------------------------
   1) Mobile usability tweaks
   ------------------------------- */
@media (max-width: 640px) {
  input,
  textarea,
  button {
    font-size: 1.1rem !important; /* prevents iOS zoom */
  }
}

/* -------------------------------
   2) Base reset + typography
   ------------------------------- */
html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #020617; /* slate-950 */
  color: #f8fafc;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

/* -------------------------------
   3) Page shells (layout helpers)
   ------------------------------- */
.page-shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.page-shell-narrow {
  max-width: 56rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* -------------------------------
   4) Section layering helpers
   ------------------------------- */
.section-layer {
  position: relative;
  z-index: 10;
}

.text-muted {
  color: rgba(226, 232, 240, 0.78);
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

/* -------------------------------
   5) Card helpers (generic)
   ------------------------------- */
.card {
  background: rgba(15, 23, 42, 0.85); /* slate-900/85 */
  border: 1px solid rgba(51, 65, 85, 0.7); /* slate-700 */
  border-radius: 1rem;
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  color: rgba(226, 232, 240, 0.92);
}

/* -------------------------------
   6) Footer + header subtle helpers
   ------------------------------- */
.header-shell {
  border-bottom: 1px solid rgba(100, 116, 139, 0.35); /* slate-600 */
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(18px);
}

.footer-shell {
  border-top: 1px solid rgba(100, 116, 139, 0.35);
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(18px);
}

/* ============================================
   Aurora Rift — background motion
   ============================================ */

/* Base wallpaper container */
.ars-wallpaper {
  position: relative;
  min-height: 100vh;
}

/* Full-screen logo wallpaper layer */
.ars-wallpaper::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;

  background-image: url("/assets/aurora-rift-logo-wallpaper.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform-origin: center center;
  /* main slow drift */
  animation: ars-wallpaper-drift 70s ease-in-out infinite alternate;
}

/* Aurora glow / color wash overlay */
.ars-wallpaper::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background:
    radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.35), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.4), transparent 65%),
    radial-gradient(circle at 50% 80%, rgba(56, 189, 248, 0.2), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.75;

  animation:
    ars-aurora-flicker 32s ease-in-out infinite,
    ars-aurora-shift 90s ease-in-out infinite alternate;
}

/* Slow rolling cloud layer */
.ars-clouds {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;

  background:
    radial-gradient(circle at bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 1));
  mask-image: radial-gradient(circle at top, transparent 0%, black 55%);
  -webkit-mask-image: radial-gradient(circle at top, transparent 0%, black 55%);

  animation: ars-cloud-roll 95s linear infinite;
}

/* Pause all background motion by default */
.ars-wallpaper::before,
.ars-wallpaper::after,
.ars-clouds {
  animation-play-state: paused;
}

/* When JS has run and set the offset, run them with a shared delay */
.bg-anim-ready .ars-wallpaper::before,
.bg-anim-ready .ars-wallpaper::after,
.bg-anim-ready .ars-clouds {
  animation-play-state: running;
  animation-delay: var(--bg-time-offset, 0s);
}

@keyframes ars-wallpaper-drift {
  0% {
    transform: scale(1.01) translate3d(0, 0, 0);
    filter: saturate(1.05) brightness(1.0);
  }
  50% {
    transform: scale(1.05) translate3d(0, -10px, 0);
    filter: saturate(1.15) brightness(1.07);
  }
  100% {
    transform: scale(1.03) translate3d(6px, 6px, 0);
    filter: saturate(1.1) brightness(1.03);
  }
}

@keyframes ars-aurora-flicker {
  0%, 15%   { opacity: 0.35; }
  35%       { opacity: 0.8; }
  65%       { opacity: 0.5; }
  100%      { opacity: 0.4; }
}

@keyframes ars-aurora-shift {
  0%   { transform: translate3d(0, 0, 0) scale(1.03); }
  50%  { transform: translate3d(-16px, -10px, 0) scale(1.08); }
  100% { transform: translate3d(12px, 6px, 0) scale(1.04); }
}

@keyframes ars-cloud-roll {
  0%   { transform: translate3d(-16px, 0, 0); }
  50%  { transform: translate3d(16px, -8px, 0); }
  100% { transform: translate3d(-16px, 0, 0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ars-wallpaper::before,
  .ars-wallpaper::after,
  .ars-clouds {
    animation: none !important;
    transform: none !important;
    filter: saturate(1.05) brightness(1.02);
    opacity: 0.8;
  }
}


/* -------------------------------
   8) Forms
   ------------------------------- */
input,
textarea,
select {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 0.75rem;
  padding: 0.6rem 0.9rem;
  color: #f1f5f9;
}

input:f
