/* ============================================================
   REBOND — #design celeste
   Ciel nocturne, aurores, glassmorphism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #030b18;
  --fg: #eef4ff;
  --muted: #8ea3c6;
  --muted-dim: #5d6f8f;

  --teal: #00f5c8;
  --violet: #7b4fff;
  --blue: #00bfff;
  --pink: #ff6ef7;

  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-glow: rgba(0, 245, 200, 0.35);

  --font-title: 'Cinzel', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100dvh;
  padding: 1.75rem 1.5rem 3rem;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

/* ---------- Ambient sky: stars + aurora ---------- */

#sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg);
  overflow: hidden;
}

#sky .stars {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 12%, #fff, transparent),
    radial-gradient(1px 1px at 22% 68%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 35% 30%, #fff, transparent),
    radial-gradient(1px 1px at 48% 82%, #fff, transparent),
    radial-gradient(2px 2px at 62% 15%, #fff, transparent),
    radial-gradient(1px 1px at 75% 55%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 88% 25%, #fff, transparent),
    radial-gradient(1px 1px at 15% 90%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 92% 78%, #fff, transparent),
    radial-gradient(1px 1px at 55% 48%, #fff, transparent),
    radial-gradient(1px 1px at 30% 5%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 68% 92%, #fff, transparent);
  background-repeat: no-repeat;
  opacity: 0.55;
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: 0.35; }
  50%  { opacity: 0.75; }
  100% { opacity: 0.45; }
}

#sky .aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  mix-blend-mode: screen;
}
#sky .aurora.a1 {
  width: 60vw; height: 60vw;
  top: -20%; left: -15%;
  background: radial-gradient(circle, var(--teal), transparent 70%);
  animation: drift1 22s ease-in-out infinite alternate;
}
#sky .aurora.a2 {
  width: 55vw; height: 55vw;
  top: 10%; right: -20%;
  background: radial-gradient(circle, var(--violet), transparent 70%);
  animation: drift2 26s ease-in-out infinite alternate;
}
#sky .aurora.a3 {
  width: 50vw; height: 50vw;
  bottom: -15%; left: 10%;
  background: radial-gradient(circle, var(--blue), transparent 70%);
  animation: drift3 30s ease-in-out infinite alternate;
}
#sky .aurora.a4 {
  width: 40vw; height: 40vw;
  bottom: 5%; right: 5%;
  background: radial-gradient(circle, var(--pink), transparent 70%);
  opacity: 0.22;
  animation: drift1 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6%, 8%) scale(1.12); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-8%, 6%) scale(1.08); }
}
@keyframes drift3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, -6%) scale(1.1); }
}

/* ---------- Layout / screens ---------- */

.screen { display: none; flex-direction: column; gap: 1.15rem; animation: rise 0.5s ease both; }
.screen.active { display: flex; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

h1 {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(120deg, var(--teal), var(--blue) 45%, var(--violet) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg);
}

.subtitle { color: var(--muted); margin-bottom: 1.75rem; font-size: 0.98rem; }

.step {
  font-size: 0.72rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.helper, .note { color: var(--muted); font-size: 0.9rem; }
.note {
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--teal);
  background: linear-gradient(90deg, rgba(0, 245, 200, 0.07), transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- Progress ---------- */

.progress-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 0.5rem;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--violet));
  background-size: 200% 100%;
  animation: flow 3s linear infinite;
}
@keyframes flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ---------- Groups ---------- */

.home-actions,
.stack-cards,
.compare-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

/* ---------- Inputs (glassmorphism) ---------- */

textarea, input[type="text"], input[type="date"], select {
  width: 100%;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  padding: 0.9rem 1rem;
  font-size: 1rem;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea::placeholder, input::placeholder { color: var(--muted-dim); }

textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--border-glow);
  background: var(--glass-strong);
  box-shadow: 0 0 0 3px rgba(0, 245, 200, 0.12), 0 0 24px rgba(0, 245, 200, 0.08);
}

.range-value {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
}

input.range-input {
  padding: 0;
  background: transparent;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background-image: linear-gradient(90deg, var(--teal), var(--violet));
}
input.range-input:focus { box-shadow: none; }
input.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fg);
  border: 3px solid var(--teal);
  box-shadow: 0 0 12px rgba(0, 245, 200, 0.6);
  cursor: pointer;
}
input.range-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fg);
  border: 3px solid var(--teal);
  box-shadow: 0 0 12px rgba(0, 245, 200, 0.6);
  cursor: pointer;
}

.cols { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 600px) {
  .cols { flex-direction: row; }
  .cols > div { flex: 1; }
}

/* ---------- Buttons ---------- */

.btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 1rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.15s ease, border-color 0.2s ease, background 0.2s ease;
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.98); }

.btn.primary {
  background: linear-gradient(120deg, var(--teal), var(--blue));
  color: #041018;
  box-shadow: 0 4px 20px rgba(0, 191, 255, 0.25);
}
.btn.primary:hover {
  box-shadow: 0 6px 28px rgba(0, 245, 200, 0.4);
  transform: translateY(-1px);
}

.btn.secondary {
  background: var(--glass);
  backdrop-filter: blur(16px);
  color: var(--fg);
  border: 1px solid var(--violet);
}
.btn.secondary:hover {
  background: rgba(123, 79, 255, 0.12);
  box-shadow: 0 0 20px rgba(123, 79, 255, 0.25);
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn.ghost:hover {
  color: var(--fg);
  border-color: var(--muted-dim);
}

.btn:focus-visible, .choice:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ---------- Choice grid ---------- */

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.choice {
  width: 100%;
  min-height: 48px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.choice:hover { border-color: var(--muted-dim); }
.choice.selected {
  border-color: var(--teal);
  background: linear-gradient(120deg, rgba(0, 245, 200, 0.14), rgba(0, 191, 255, 0.08));
  box-shadow: 0 0 18px rgba(0, 245, 200, 0.18);
  color: var(--fg);
}

.conditional {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: rise 0.35s ease both;
}
.hidden { display: none !important; }

/* ---------- Carte (proof card) ---------- */

.carte {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.carte::before {
  content: "";
  position: absolute;
  top: -40%; left: -20%;
  width: 70%; height: 70%;
  background: radial-gradient(circle, var(--violet), transparent 70%);
  opacity: 0.18;
  filter: blur(40px);
  pointer-events: none;
}
.carte strong {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-title);
  color: var(--teal);
  font-weight: 600;
}
.carte p + p { margin-top: 0.8rem; }
.carte .section-title {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.carte .closing {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  color: var(--fg);
  font-style: italic;
}

/* ---------- FAB ---------- */

.fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  display: none;
  box-shadow: 0 6px 24px rgba(123, 79, 255, 0.45);
  z-index: 10;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fab.visible { display: flex; align-items: center; justify-content: center; }
.fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 30px rgba(123, 79, 255, 0.6); }

/* ---------- Mur des rebonds ---------- */

#liste-rebonds { display: flex; flex-direction: column; gap: 1rem; }

.rebond-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  font-size: 0.9rem;
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}
.rebond-card:hover { border-color: var(--border-glow); }

.rebond-card .date { color: var(--muted); font-size: 0.8rem; margin-bottom: 0.5rem; }
.rebond-card .type {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 245, 200, 0.12);
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}
.card-actions .btn { flex: 1; padding: 0.7rem 1rem; font-size: 0.85rem; }

/* ---------- Timeline summary (clickable header) ---------- */

.timeline-summary {
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
  box-sizing: border-box;
}

.timeline-title {
  font-family: var(--font-title);
  color: var(--fg);
  font-weight: 600;
  font-size: 1.02rem;
  margin: 0.5rem 0 0.6rem;
}

.timeline-mini {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.4rem 0 0.7rem;
  font-size: 0.7rem;
}
.timeline-mini-step {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  white-space: nowrap;
}
.timeline-mini-step.done { background: rgba(0, 245, 200, 0.15); color: var(--teal); }
.timeline-mini-step.due { background: rgba(255, 110, 247, 0.16); color: var(--pink); animation: mini-pulse 1.8s ease-in-out infinite; }
.timeline-mini-step.future { background: rgba(255, 255, 255, 0.04); color: var(--muted-dim); }
.timeline-mini-arrow { color: var(--muted-dim); font-size: 0.75rem; }

@keyframes mini-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.timeline-last {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

.timeline-toggle-label {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Timeline details (expanded) ---------- */

.timeline-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
}
.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.1rem;
  bottom: -1rem;
  width: 1px;
  background: var(--border);
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0.32rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted-dim);
}
.timeline-item.done .timeline-dot { background: var(--teal); box-shadow: 0 0 8px rgba(0, 245, 200, 0.7); }
.timeline-item.due .timeline-dot { background: var(--pink); box-shadow: 0 0 10px rgba(255, 110, 247, 0.7); animation: mini-pulse 1.6s ease-in-out infinite; }
.timeline-item.future .timeline-dot { background: var(--muted-dim); }

.timeline-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.timeline-item.done .timeline-kicker { color: var(--teal); }
.timeline-item.due .timeline-kicker { color: var(--pink); }

.timeline-body { font-size: 0.9rem; color: var(--fg); }
.timeline-body p { margin-top: 0.4rem; }
.timeline-body p:first-child { margin-top: 0; }
.timeline-body strong { color: var(--muted); font-weight: 600; }

.followup-meta {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 600;
}

.followup-action {
  margin-top: 0.7rem;
  border: 1px solid var(--pink);
  background: rgba(255, 110, 247, 0.1);
  color: var(--fg);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.followup-action:hover {
  background: rgba(255, 110, 247, 0.18);
  box-shadow: 0 0 18px rgba(255, 110, 247, 0.25);
}

/* ---------- Loop reason modal ---------- */

.loop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 11, 24, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
  animation: rise 0.25s ease both;
}
.loop-modal {
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.loop-modal h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--fg);
}
.loop-modal .choice {
  display: block;
  width: 100%;
  margin-bottom: 0.55rem;
}
.loop-modal .loop-cancel { width: 100%; margin-top: 0.4rem; }

/* ---------- Intro / onboarding ---------- */

#screen-intro {
  position: relative;
  padding-top: 0.5rem;
  overflow: visible;
}

.intro-halo {
  position: absolute;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  max-width: 90vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 245, 200, 0.32), rgba(123, 79, 255, 0.22) 45%, transparent 72%);
  filter: blur(46px);
  z-index: -1;
  animation: halo-pulse 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes halo-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.85; transform: translateX(-50%) scale(1.15); }
}

.intro-symbol {
  width: 68px;
  height: 68px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 30px rgba(0, 245, 200, 0.25), inset 0 0 18px rgba(123, 79, 255, 0.18);
  animation: symbol-breathe 4s ease-in-out infinite;
}
@keyframes symbol-breathe {
  0%, 100% {
    box-shadow: 0 0 30px rgba(0, 245, 200, 0.25), inset 0 0 18px rgba(123, 79, 255, 0.18);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 44px rgba(0, 245, 200, 0.4), inset 0 0 26px rgba(123, 79, 255, 0.28);
    transform: scale(1.04);
  }
}

.intro-kicker {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.intro-slide {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem 1.5rem;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.intro-slide.active { display: flex; animation: rise 0.4s ease both; }
.intro-slide h2 { margin: 0; }
.intro-slide .helper { text-align: center; }
.intro-slide .note { text-align: left; margin-top: 0.4rem; }

.intro-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.4rem;
  text-align: left;
}
.intro-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  transition: border-color 0.2s, transform 0.2s;
}
.intro-card:hover { border-color: var(--border-glow); transform: translateY(-1px); }
.intro-card-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 245, 200, 0.15), rgba(123, 79, 255, 0.15));
  border: 1px solid var(--border-glow);
  color: var(--teal);
}
.intro-card-icon svg { width: 20px; height: 20px; }
.intro-card-title { font-weight: 600; color: var(--fg); font-size: 0.95rem; margin-bottom: 0.25rem; }
.intro-card-text { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

/* progress bar (was dots) */
.intro-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin: 1.15rem 0 0.25rem;
}
.intro-dot {
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
.intro-dot.active {
  background: linear-gradient(90deg, var(--teal), var(--blue));
  box-shadow: 0 0 10px rgba(0, 245, 200, 0.5);
}

/* spectacular "Suivant" button */
.btn.primary.intro-next {
  position: relative;
  overflow: hidden;
}
.btn.primary.intro-next::after {
  content: "→";
  margin-left: 0.5rem;
  display: inline-block;
  transition: transform 0.2s;
}
.btn.primary.intro-next:hover::after { transform: translateX(4px); }
.btn.primary.intro-next::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: intro-shimmer 3.4s ease-in-out infinite;
}
@keyframes intro-shimmer {
  0% { left: -150%; }
  45% { left: 150%; }
  100% { left: 150%; }
}

/* ---------- Footer laboWeb ---------- */

.laboweb-footer {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.laboweb-brand h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  background: linear-gradient(120deg, var(--violet), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.laboweb-brand p {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.laboweb-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.78rem;
  transition: border-color 0.2s, background 0.2s;
  animation: rise 0.5s ease both;
}
.footer-link:hover {
  border-color: var(--border-glow);
  background: var(--glass-strong);
}

.laboweb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-replay {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(123, 79, 255, 0.12);
  border: 1px solid var(--violet);
  color: var(--violet);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s;
}
.footer-replay:hover {
  background: rgba(123, 79, 255, 0.2);
  box-shadow: 0 0 16px rgba(123, 79, 255, 0.3);
}

.laboweb-disclaimer {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  font-size: 0.78rem;
  color: var(--muted-dim);
  line-height: 1.5;
}
