.immersive-intro,
.immersive-intro body {
  min-height: 100vh;
}

.immersive-intro {
  background:
    radial-gradient(ellipse at 50% 110%, rgba(76, 138, 210, 0.18), transparent 36%),
    radial-gradient(circle at 18% 18%, rgba(126, 182, 255, 0.18), transparent 28%),
    radial-gradient(circle at 78% 22%, rgba(76, 138, 210, 0.16), transparent 24%),
    linear-gradient(180deg, #02060f 0%, #040b1a 60%, #06091c 100%);
  overflow: hidden;
}

.intro-screen {
  position: relative;
  min-height: 100vh;
}

.intro-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 42%, rgba(2, 4, 12, 0.55) 100%);
  z-index: 2;
}

#intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.intro-panel {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ui-hidden .intro-panel[data-panel="intro"],
.ui-hidden .intro-panel[data-panel="focus"],
.ui-hidden .intro-panel[data-panel="dock"],
.ui-hidden .intro-panel[data-panel="hint"] {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.intro-topbar {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(6, 12, 25, 0.74), rgba(6, 12, 25, 0.34));
  border: 1px solid rgba(126, 182, 255, 0.16);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.intro-back,
.intro-links a {
  color: rgba(233, 239, 255, 0.9);
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
}

.intro-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.intro-links .active {
  color: #ffd166;
}

.intro-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(126, 182, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 16, 33, 0.68);
  color: #d8e7ff;
  cursor: pointer;
}

.toggle-eye {
  position: relative;
  width: 16px;
  height: 10px;
  border: 1.6px solid currentColor;
  border-radius: 12px / 8px;
}

.toggle-eye::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.ui-hidden .toggle-eye::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -2px;
  right: -2px;
  height: 1.6px;
  background: currentColor;
  transform: rotate(-26deg);
  transform-origin: center;
}

.toggle-label {
  font-size: 12px;
}

.intro-minimal-copy {
  position: absolute;
  top: 92px;
  left: 20px;
  z-index: 3;
  max-width: min(340px, 28vw);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(126, 182, 255, 0.12);
  background: linear-gradient(135deg, rgba(6, 12, 28, 0.56), rgba(6, 12, 28, 0.14));
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.intro-minimal-copy .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  letter-spacing: 0.28em;
  color: #9ad1ff;
  font-size: 10px;
  text-transform: uppercase;
}

.intro-minimal-copy .kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #7eb6ff);
}

.intro-minimal-copy h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 700;
  background: linear-gradient(120deg, #ffffff 0%, #c2d6ff 38%, #9ce6ff 72%, #4cd2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.32));
}

.intro-minimal-copy p {
  margin-top: 12px;
  max-width: 260px;
  font-size: 12px;
  color: rgba(219, 230, 255, 0.74);
  line-height: 1.6;
}

.intro-focusbar {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(5, 11, 22, 0.76), rgba(5, 11, 22, 0.34));
  border: 1px solid rgba(123, 174, 255, 0.16);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

.focus-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 84, 0.3);
  color: #ffd166;
  font-size: 10px;
  letter-spacing: 0.24em;
  background: linear-gradient(135deg, rgba(255, 184, 84, 0.16), rgba(76, 138, 210, 0.08));
}

.focus-text strong {
  display: block;
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.focus-text span {
  display: block;
  margin-top: 4px;
  color: rgba(221, 230, 255, 0.62);
  font-size: 11px;
}

.focus-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  color: #00121f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #4cd2ff 0%, #3a8fea 100%);
  box-shadow: 0 10px 22px rgba(76, 138, 210, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.focus-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(76, 138, 210, 0.4);
}

.intro-dock {
  position: absolute;
  right: 18px;
  top: 94px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(230px, 19vw);
  max-height: calc(100vh - 210px);
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(126, 182, 255, 0.16);
  background: linear-gradient(180deg, rgba(5, 11, 22, 0.66), rgba(5, 11, 22, 0.2));
  backdrop-filter: blur(14px);
}

.intro-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 6px;
}

.intro-dock-header span,
.intro-dock-header em {
  font-size: 10px;
  color: rgba(215, 227, 255, 0.74);
  font-style: normal;
}

.intro-dock .feature-card {
  padding: 10px 11px;
  border-radius: 16px;
  border: 1px solid rgba(126, 182, 255, 0.15);
  background: linear-gradient(180deg, rgba(5, 11, 22, 0.74), rgba(5, 11, 22, 0.38));
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.intro-dock .feature-card span {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #ffbe52;
}

.intro-dock .feature-card h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}

.intro-dock .feature-card em {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: rgba(215, 227, 255, 0.56);
  font-style: normal;
}

.intro-dock .feature-card.active,
.intro-dock .feature-card:hover {
  transform: translateX(-4px);
  border-color: rgba(76, 138, 210, 0.34);
  background: linear-gradient(180deg, rgba(11, 20, 39, 0.88), rgba(11, 20, 39, 0.44));
}

.intro-hint {
  position: absolute;
  right: 18px;
  bottom: 88px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(126, 182, 255, 0.14);
  background: rgba(6, 12, 25, 0.52);
  color: rgba(223, 234, 255, 0.76);
  font-size: 10px;
  backdrop-filter: blur(10px);
}

.hint-key {
  color: #9ad1ff;
}

.hint-sep {
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1080px) {
  .intro-dock {
    width: min(220px, 24vw);
  }

  .intro-minimal-copy {
    max-width: min(300px, 32vw);
  }
}

@media (max-width: 960px) {
  .intro-topbar {
    grid-template-columns: 1fr;
    justify-items: start;
    border-radius: 24px;
  }

  .intro-links {
    justify-content: flex-start;
  }

  .intro-minimal-copy {
    max-width: 300px;
  }

  .intro-dock {
    top: auto;
    right: 18px;
    bottom: 128px;
    width: min(240px, 34vw);
    max-height: 42vh;
    overflow: auto;
  }

  .intro-focusbar {
    grid-template-columns: 1fr;
  }

  .intro-hint {
    right: 18px;
    bottom: 92px;
  }
}

@media (max-width: 720px) {
  .intro-topbar,
  .intro-minimal-copy,
  .intro-focusbar {
    left: 12px;
    right: 12px;
  }

  .intro-topbar {
    top: 12px;
    padding: 10px 12px;
  }

  .intro-minimal-copy {
    top: 84px;
    max-width: min(260px, 70vw);
    padding: 12px 14px;
  }

  .intro-minimal-copy h1 {
    font-size: 28px;
  }

  .intro-minimal-copy p {
    max-width: 220px;
    font-size: 11px;
  }

  .intro-dock {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 132px;
    max-height: 34vh;
  }

  .intro-focusbar {
    bottom: 12px;
    padding: 10px 12px;
  }

  .focus-action {
    width: 100%;
  }

  .intro-hint {
    left: 12px;
    right: 12px;
    bottom: 88px;
    justify-content: center;
  }
}

.intro-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 5;
  color: #cfeaff;
  text-align: center;
  padding: 0 24px;
  background: radial-gradient(ellipse at 50% 50%, rgba(2, 8, 23, 0.3), rgba(2, 4, 12, 0.5));
  transition: opacity 0.4s ease;
}

.intro-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.intro-loader .loader-orb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #cfeaff 0%, #4cd2ff 32%, #1f4f8a 72%, transparent 80%);
  box-shadow: 0 0 36px rgba(76, 210, 255, 0.6), inset 0 0 18px rgba(207, 234, 255, 0.6);
  animation: intro-loader-pulse 2.2s ease-in-out infinite;
}

@keyframes intro-loader-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }

  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

.intro-loader .loader-title {
  font-size: 13px;
  letter-spacing: 0.32em;
  color: #f3f7ff;
}

.intro-loader .loader-sub {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(195, 211, 240, 0.7);
}
