body {
  margin: 0;
  overflow: hidden;
  background: #000;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ff66ff;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 6px;
  text-shadow: 0 0 8px #ff00ff, 0 0 20px #ff00ff, 0 0 40px #b0008f;
  z-index: 999;
  animation: neon-flicker 2.5s infinite alternate;
}

@keyframes neon-flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  94% { opacity: 0.55; }
  96% { opacity: 1; }
}

#overlay-links,
#overlay-links-left,
#overlay-links-mitte {
  position: fixed;
  bottom: 14px;
  background: linear-gradient(180deg, rgba(30, 6, 45, 0.55), rgba(8, 2, 18, 0.7));
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 45, 149, 0.45);
  box-shadow: 0 0 14px rgba(255, 45, 149, 0.35), inset 0 0 12px rgba(0, 229, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: #ffe3fb;
  z-index: 1000;
}

#overlay-links { right: 14px; font-size: 14px; }
#overlay-links-left { left: 14px; font-size: 14px; }

#overlay-links-mitte {
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.3), inset 0 0 12px rgba(255, 45, 149, 0.08);
}

#overlay-links a,
#overlay-links-left a,
#overlay-links-mitte a {
  color: #ff4dd2;
  text-decoration: none;
  margin: 0 6px;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(255, 77, 210, 0.8);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

#overlay-links a:hover,
#overlay-links-left a:hover,
#overlay-links-mitte a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px #00e5ff, 0 0 18px #00e5ff;
}

#overlay-popup {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(8, 0, 16, 0.82);
}

.overlay-content {
  background: linear-gradient(160deg, #1a0730 0%, #0c0418 100%);
  color: #f3e6ff;
  padding: 28px 30px;
  margin: 5% auto;
  width: 90%;
  max-width: 700px;
  border-radius: 14px;
  border: 1px solid rgba(255, 45, 149, 0.6);
  box-shadow: 0 0 30px rgba(255, 45, 149, 0.45), 0 0 60px rgba(157, 78, 221, 0.25),
              inset 0 0 30px rgba(0, 229, 255, 0.06);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.6;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

.overlay-content h1,
.overlay-content h2,
.overlay-content h3 {
  color: #ff66cc;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 102, 204, 0.7);
}

.overlay-content h1 {
  border-bottom: 1px solid rgba(0, 229, 255, 0.35);
  padding-bottom: 10px;
}

.overlay-content::-webkit-scrollbar { width: 8px; }
.overlay-content::-webkit-scrollbar-track { background: transparent; }
.overlay-content::-webkit-scrollbar-thumb {
  background: linear-gradient(#ff00ff, #00e5ff);
  border-radius: 4px;
}

.close {
  position: absolute;
  right: 16px;
  top: 12px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: #ff4dd2;
  text-shadow: 0 0 8px rgba(255, 77, 210, 0.8);
  transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
}
.close:hover {
  color: #fff;
  text-shadow: 0 0 10px #00e5ff, 0 0 20px #00e5ff;
  transform: scale(1.15);
}

a.j {
  color: #7df9ff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(125, 249, 255, 0.5);
  text-shadow: 0 0 6px rgba(125, 249, 255, 0.6);
}
a.j:hover {
  color: #fff;
  text-shadow: 0 0 8px #ff66cc, 0 0 16px #ff66cc;
}

#visualizer {
  position: fixed;
  bottom: 84px;
  left: 22px;
  height: 60px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  z-index: 999;
  pointer-events: none;
  -webkit-box-reflect: below 2px linear-gradient(rgba(0, 0, 0, 0.45), transparent 70%);
}

.bar {
  position: relative;
  width: 6px;
  height: 100%;
}

.bar-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 1px 1px;
}

.bar-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
}
