:root {
  --bg: #000000;
  --bg-card: rgba(0, 0, 0, 0.88);
  --text: #f5f5f5;
  --accent: #1c1c1c;
  --accent-hover: #2a2a2a;
  --muted: #a3a3a3;
  --font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --background-image: none;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  position: relative;
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
}

.background-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  opacity: 0;
  transition: opacity 220ms ease-in-out;
  pointer-events: none;
}

body.has-background-video .background-video {
  opacity: 1;
}

body::before {
  background-image: var(--background-image);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 220ms ease-in-out;
}

body.has-custom-bg {
  background: #000000;
}

body.has-custom-bg::before {
  opacity: 1;
}

body::after {
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
  z-index: -1;
}

body.has-custom-bg::after {
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.75));
}


.card {
  width: min(420px, 92vw);
  padding: 3rem 2.5rem;
  border-radius: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
  display: grid;
  gap: 2.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.card__header > * {
  margin: 0.25rem 0;
}

.card__header h1 {
  font-size: 1.9rem;
  background: linear-gradient(90deg, #ffffff 20%, #000000 80%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: name-glow 4s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
}

.title-icon {
  width: 1.9rem;
  height: 1.9rem;
  object-fit: contain;
}

.title-text {
  display: inline-block;
}

.card__header h1::selection {
  color: #ffffff;
}

@keyframes name-glow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  position: relative;
  font-weight: 700;
  font-size: 2rem;
  color: var(--text);
  background: linear-gradient(135deg, #050505, #141414);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.avatar__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar__fallback {
  display: grid;
  place-items: center;
  height: 100%;
  width: 100%;
}

.tagline {
  color: var(--muted);
  font-size: 0.95rem;
  min-height: 1.8rem;
  display: inline-flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.35rem;
  line-height: 1.6;
  margin: 0 auto;
}

.typing-text {
  white-space: pre;
  min-width: 0.15rem;
}

.typing-cursor {
  width: 0.12em;
  min-width: 0.12em;
  height: 1.2em;
  background: var(--muted);
  display: inline-block;
  position: relative;
  top: -7px;
  animation: cursor-blink 900ms steps(2) infinite;
}

.tagline.is-typing .typing-cursor {
  background: var(--text);
}

@keyframes cursor-blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

.links {
  display: flex;
  justify-content: center;
  gap: 1.15rem;
  margin-top: -2rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: transparent;
  border: none;
  transition: transform 160ms ease;
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-6px);
  outline: none;
}

.links span {
  font-size: 1.1rem;
}

.icon {
  width: 3rem;
  height: 3rem;
  fill: #ffffff;
}

.icon-image {
  width: 6rem;
  height: 6rem;
  display: block;
  object-fit: contain;
  background: transparent;
}

.bg-audio {
  display: none;
}

.card__footer {
  color: var(--muted);
  font-size: 0.85rem;
}

.card__footer code {
  color: var(--accent);
}
