.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: #030109;
}

.bg-photo {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(60, 20, 110, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(75, 25, 130, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 90%, rgba(35, 5, 70, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 85%, rgba(80, 45, 140, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 15%, rgba(55, 15, 100, 0.28) 0%, transparent 50%),
    linear-gradient(160deg, #03010a 0%, #060310 45%, #040209 100%);
}

.bg-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'><g fill='none' stroke='%239b7ae8' stroke-width='1' opacity='0.35'><circle cx='120' cy='140' r='70'/><circle cx='470' cy='180' r='110'/><circle cx='240' cy='450' r='85'/><circle cx='480' cy='480' r='60'/><path d='M0 300 Q150 240 300 300 T600 300'/><path d='M0 400 Q150 460 300 400 T600 400'/><rect x='380' y='360' width='100' height='100' transform='rotate(22 430 410)'/><line x1='0' y1='150' x2='600' y2='150' stroke-dasharray='6 10'/><line x1='0' y1='220' x2='600' y2='220' stroke-dasharray='3 12'/></g><g fill='%23b8a4f5' opacity='0.4'><circle cx='300' cy='90' r='5'/><circle cx='520' cy='520' r='6'/><circle cx='70' cy='520' r='4'/><circle cx='180' cy='260' r='4'/><circle cx='560' cy='90' r='4'/><circle cx='420' cy='300' r='3'/></g></svg>");
  background-size: 600px 600px;
  background-repeat: repeat;
  opacity: 0.35;
}

.bg-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(5, 2, 15, 0.35), rgba(2, 0, 8, 0.92) 95%);
  pointer-events: none;
}

body[data-theme="pixel"] .bg-scene { display: none; }

#intro {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  overflow: hidden;
}

#intro.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#intro > * { position: relative; z-index: 2; }

.intro-text {
  font-size: clamp(1.8rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 3px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--accent-4);
  max-width: 90%;
  width: 0;
  animation: typing 2s steps(20) 0.3s forwards, blink 0.7s step-end infinite;
}

.intro-sub {
  margin-top: 20px;
  font-size: clamp(0.9rem, 2.5vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 6px;
  color: var(--accent-4);
  opacity: 0;
  animation: fadeUp 1s ease 2.5s forwards;
  text-transform: uppercase;
}

.intro-line {
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-3), var(--accent-4), var(--accent-3), transparent);
  margin-top: 30px;
  border-radius: 3px;
  animation: lineGrow 1.4s ease 2.8s forwards;
}

.intro-next {
  margin-top: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 36px;
  border-radius: 50px;
  border: 1.5px solid var(--accent-3);
  background: rgba(91, 33, 182, 0.15);
  color: var(--accent-4);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 0.8s ease 3.4s forwards;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  touch-action: manipulation;
}

.intro-next span { line-height: 1; }
.intro-next i {
  font-size: 0.8rem;
  transition: transform 0.35s ease;
}

.intro-next:hover {
  background: var(--accent-soft);
  color: #ffffff;
  border-color: var(--accent-4);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.intro-next:hover i { transform: translateX(5px); }

.intro-next:active { transform: translateY(0); }

body[data-theme="pixel"] .intro-next {
  border-radius: 0;
  border-width: 3px;
  padding: 14px 24px;
  font-size: 0.55rem;
  letter-spacing: 3px;
  animation: fadeUp 0.4s steps(3, end) 3.4s forwards;
}

body[data-theme="pixel"] .intro-next:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent-3);
}