/* Intro carousel (first-visit onboarding) ------------------------------ */
.intro {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(14px, 4vh, 28px) clamp(16px, 5vw, 28px);
  background: var(--intro-bg);
  color: var(--intro-fg);
  transition: background-color 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
}

.intro[data-slide="1"] { --intro-bg: #1E2A4A; --intro-fg: #FBF8F1; --intro-accent: #E7A83E; --intro-btn-bg: #E7A83E; --intro-btn-fg: #241800; --intro-unfilled: rgba(255,255,255,0.25); }
.intro[data-slide="2"] { --intro-bg: #141B2E; --intro-fg: #EDEAE0; --intro-accent: #E7A83E; --intro-btn-bg: #E7A83E; --intro-btn-fg: #241800; --intro-unfilled: rgba(255,255,255,0.25); }
.intro[data-slide="3"] { --intro-bg: #2E2000; --intro-fg: #FBF8F1; --intro-accent: #E7A83E; --intro-btn-bg: #E7A83E; --intro-btn-fg: #241800; --intro-unfilled: rgba(255,255,255,0.25); }
.intro[data-slide="4"] { --intro-bg: #12141C; --intro-fg: #F5F3EC; --intro-accent: #E7A83E; --intro-btn-bg: #E7A83E; --intro-btn-fg: #241800; --intro-unfilled: rgba(255,255,255,0.25); }
.intro[data-slide="5"] { --intro-bg: #C2871F; --intro-fg: #241800; --intro-accent: #1E2A4A; --intro-btn-bg: #1E2A4A; --intro-btn-fg: #FBF8F1; --intro-unfilled: rgba(30,42,74,0.25); }

.intro-progress {
  width: 100%;
  max-width: 760px;
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  margin-bottom: clamp(10px, 2.4vh, 18px);
}

.intro-progress-seg {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--intro-unfilled);
  transition: background-color 0.3s ease;
}

.intro-progress-seg.is-filled { background: var(--intro-accent); }

.intro-top {
  width: 100%;
  max-width: 760px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(6px, 1.5vh, 10px);
}

.intro-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.92rem; opacity: 0.75; }
.intro-brand-icon { width: 22px; height: 22px; flex-shrink: 0; }

.intro-top-links { display: flex; align-items: center; gap: 18px; }

.intro-skip {
  font-size: 0.88rem;
  color: var(--intro-fg);
  opacity: 0.75;
  font-weight: 600;
  text-decoration: none;
}
.intro-skip:hover { opacity: 1; }

.intro-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.intro-slide { display: none; }
.intro-slide.is-active { display: block; }

.intro-slide h1 {
  font-size: clamp(1.4rem, 4.3vw, 2.6rem);
  line-height: 1.22;
  margin: 0 0 clamp(10px, 2vh, 20px);
}

.intro-slide p {
  font-size: clamp(0.95rem, 2.4vh, 1.1rem);
  margin: 0;
  opacity: 0.85;
}

.intro-slide .intro-emphasis {
  opacity: 1;
  font-weight: 700;
  margin-top: 8px;
}

.intro-bottom {
  width: 100%;
  max-width: 620px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.6vh, 14px);
  padding-top: 8px;
}

.intro-next {
  display: none;
  width: 100%;
  box-sizing: border-box;
  background: var(--intro-btn-bg);
  color: var(--intro-btn-fg);
  border: none;
  border-radius: 999px;
  padding: clamp(12px, 2.4vh, 16px) 20px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.intro-next.is-active { display: block; }

.intro-back {
  display: none;
  background: none;
  border: none;
  width: auto;
  padding: 2px 0;
  font-size: 0.9rem;
  color: var(--intro-fg);
  opacity: 0.7;
  font-weight: 600;
  cursor: pointer;
}

.intro-back.is-visible { display: inline-block; }
