/* ============================================================
   VIBE.LINK — Matrix / MS-DOS Boot-Intro  (Aha-Effekt)
   Wiederverwendbares Modul fuer ALLE Unterseiten (Kunst, Gaming,
   KI, Apps ...). NICHT auf der Startseite. Laeuft ~3 s, dann
   morpht es weg und gibt die Seite frei. Per Klick ueberspringbar.
   Modulname per data-module="KUNST" am #boot-intro setzbar.
   ============================================================ */
#boot-intro {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', ui-monospace, monospace;
  cursor: pointer;
  animation: btflicker 3s infinite;
}
#boot-intro.is-hidden { opacity: 0; pointer-events: none; transition: opacity 0.8s ease; }
#boot-intro.is-gone { display: none !important; }
#boot-intro.shake { animation: btshake 0.6s cubic-bezier(.36,.07,.19,.97); }

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

/* Scanlines + CRT-Vignette */
#boot-intro::after {
  content: "";
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,0.28) 3px, rgba(0,0,0,0) 4px),
    radial-gradient(ellipse at center, transparent 52%, rgba(0,0,0,0.75) 100%);
}
@keyframes btflicker { 0%,19%,21%,55%,57%,100%{opacity:1} 20%,56%{opacity:.85} }
@keyframes btshake {
  0%,100%{transform:translate(0,0)}
  10%{transform:translate(-13px,7px)} 20%{transform:translate(12px,-9px)}
  30%{transform:translate(-14px,-5px)} 40%{transform:translate(13px,8px)}
  50%{transform:translate(-10px,6px)} 60%{transform:translate(10px,-7px)}
  70%{transform:translate(-8px,-4px)} 80%{transform:translate(7px,5px)} 90%{transform:translate(-4px,3px)}
}

.boot-terminal {
  position: relative; z-index: 2;
  width: min(720px, 92vw);
  color: #00ff41;
  text-shadow: 0 0 8px rgba(0,255,65,0.7);
  font-size: clamp(11px, 2.6vw, 15px);
  line-height: 1.7;
  background: rgba(0,14,0,0.40);
  border: 1px solid rgba(0,255,65,0.28);
  border-radius: 8px;
  padding: 22px 24px;
  box-shadow: 0 0 60px rgba(0,255,65,0.18), inset 0 0 26px rgba(0,255,65,0.06);
}
.bt-title {
  font-size: clamp(22px, 6.5vw, 44px);
  font-weight: 900; letter-spacing: 4px;
  color: #eafff0; margin-bottom: 14px; position: relative;
  text-shadow: 0 0 16px rgba(0,255,65,0.9);
}
.bt-title[data-text]::before, .bt-title[data-text]::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; overflow: hidden;
}
.bt-title::before { color: #22d3ee; transform: translate(-2px,0); opacity: .8;  animation: btglitch 2s infinite steps(2); }
.bt-title::after  { color: #ff003c; transform: translate(2px,0);  opacity: .7;  animation: btglitch 1.6s infinite reverse steps(2); }
@keyframes btglitch {
  0%,100%{clip-path:inset(0 0 82% 0)} 25%{clip-path:inset(42% 0 40% 0)}
  50%{clip-path:inset(78% 0 4% 0)} 75%{clip-path:inset(20% 0 62% 0)}
}
.boot-line { white-space: pre-wrap; min-height: 1.2em; }
.boot-line .ok { color: #22d3ee; text-shadow: 0 0 8px rgba(34,211,238,0.8); }
.boot-cursor {
  display: inline-block; width: 0.6em; height: 1.05em; background: #00ff41;
  vertical-align: -2px; margin-left: 3px; box-shadow: 0 0 8px rgba(0,255,65,0.9);
  animation: btblink 1s steps(1) infinite;
}
@keyframes btblink { 50%{opacity:0} }

.boot-skip {
  position: absolute; bottom: 18px; right: 20px; z-index: 6;
  color: rgba(0,255,65,0.5); font-size: 11px; letter-spacing: 1px; user-select: none;
}
/* BLITZ / Lightning beim Start der Umwandlung */
#boot-flash { position: absolute; inset: 0; z-index: 7; background: #f0fff5; opacity: 0; pointer-events: none; }
#boot-flash.fire { animation: btflash 0.95s ease; }
@keyframes btflash {
  0%{opacity:0} 4%{opacity:1} 9%{opacity:.15} 14%{opacity:1}
  20%{opacity:.05} 27%{opacity:.96} 35%{opacity:.1} 44%{opacity:.82}
  55%{opacity:.03} 66%{opacity:.5} 100%{opacity:0}
}

/* ---- Umwandlung: leuchtende Scan-Kante (Realitaet laedt von oben nach unten) ---- */
.boot-scan {
  position: fixed; left: 0; top: 0; width: 100%; height: 4px;
  z-index: 2147483600; pointer-events: none;
  background: linear-gradient(90deg, transparent, #eafff0 18%, #00ff41 50%, #eafff0 82%, transparent);
  box-shadow: 0 0 34px 12px rgba(0,255,65,0.7), 0 0 10px 2px rgba(234,255,240,0.9);
}
.boot-scan::after {
  content: ""; position: absolute; left: 0; top: 4px; width: 100%; height: 140px;
  background: linear-gradient(180deg, rgba(0,255,65,0.30), rgba(0,255,65,0));
}

/* ---- Umwandlung: Ladebalken "REALITAET WIRD GELADEN ..." ---- */
.boot-loadbar {
  position: fixed; left: 50%; bottom: 9%; transform: translateX(-50%);
  z-index: 2147483600; width: min(560px, 86vw); pointer-events: none;
  font-family: 'Courier New', ui-monospace, monospace; text-align: center;
}
.blb-label { color: #00ff41; text-shadow: 0 0 8px rgba(0,255,65,0.8); font-size: 12px; letter-spacing: 2px; margin-bottom: 8px; }
.blb-pct { color: #eafff0; }
.blb-track {
  height: 10px; border-radius: 6px; background: rgba(0,40,0,0.6);
  border: 1px solid rgba(0,255,65,0.4); overflow: hidden; box-shadow: inset 0 0 10px rgba(0,255,65,0.15);
}
.blb-fill {
  height: 100%; width: 0%; border-radius: 6px;
  background: linear-gradient(90deg, #00ff41, #eafff0);
  box-shadow: 0 0 16px rgba(0,255,65,0.85); transition: width 0.08s linear;
}

@media (prefers-reduced-motion: reduce) { #boot-intro { display: none !important; } }
