html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: black;
  font-family: sans-serif;
  color: white;
}

/* Вступление */
#intro {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease;
  overflow: hidden;
}
#intro video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
}
#intro.fade-out { opacity: 0; }

#welcome-text {
  font-size: 3em;
  color: white;
  text-shadow: 0 0 20px rgba(255,255,255,0.8);
}

/* Интерфейс */
#ui {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  opacity: 0;
  transition: opacity 1s ease;
}
#ui.show { opacity: 1; }

.profile { display: flex; align-items: center; margin-bottom: 10px; }

/* Аватар с анимацией рамки */
.avatar-frame {
  position: relative;
  display: inline-block;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(#131219,#131219) padding-box,
              conic-gradient(#18047e,#8624e4,#1c0c13) border-box;
  border: 3px solid transparent;
  animation: spin 8s linear infinite;
}
.avatar-frame::before {
  content: "";
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  border-radius: 50%;
  background: conic-gradient(#8624e4,#1c0c13,#18047e);
  animation: spin 8s reverse linear infinite;
  z-index: -1;
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 5px #8624e4;
  animation: glow 2s infinite alternate;
}
@keyframes glow {
  from { box-shadow: 0 0 5px #8624e4; }
  to { box-shadow: 0 0 15px #8624e4; }
}

.username { margin-left: 10px; font-weight: bold; font-size: 1.2em; }
.tagline { margin-top: 5px; }

/* Блоки текста с лавовым фоном */
.about-text {
  border-radius: 10px;
  padding: 10px;
  background: linear-gradient(135deg, #18047e, #8624e4, #1c0c13);
  background-size: 200% 200%;
  transition: transform 0.3s ease, background-position 5s ease;
}
.about-text:hover {
  transform: scale(1.03);
  animation: lava 5s infinite alternate;
}
@keyframes lava {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
