*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #080808;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --text-muted: #9ca3af;
  --accent: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.35);
  --accent-glow-soft: rgba(255, 255, 255, 0.12);
  --featured: linear-gradient(135deg, #141414 0%, #2a2a2a 50%, #3d3d3d 100%);
  --featured-ring: linear-gradient(135deg, #ffffff 0%, #d4d4d8 50%, #a1a1aa 100%);
  --radius: 16px;
  --max-width: 420px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Schwebende Partikel */
.particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .particles {
    display: none;
  }
}

/* Cursor-Glow (folgt der Maus) */
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 300px;
  height: 300px;
  margin-left: -150px;
  margin-top: -150px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.06) 35%,
    transparent 65%
  );
  filter: blur(28px);
  transition: opacity 0.35s ease;
  will-change: transform;
}

body.is-cursor-active .cursor-glow {
  opacity: 1;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-glow {
    display: none;
  }
}

/* Hintergrund-Glow */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--1 {
  width: 320px;
  height: 320px;
  background: #ffffff;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.12;
}

.bg-glow--2 {
  width: 240px;
  height: 240px;
  background: #e5e5e5;
  bottom: 10%;
  right: -60px;
  opacity: 0.08;
}

.page {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Profil */
.profile {
  text-align: center;
  margin-bottom: 2rem;
}

.avatar-wrap {
  display: inline-block;
  padding: 3px;
  border-radius: 50%;
  background: var(--featured-ring);
  margin-bottom: 1rem;
  box-shadow:
    0 0 24px var(--accent-glow),
    0 0 48px var(--accent-glow-soft);
  animation: avatar-pulse 3.5s ease-in-out infinite;
}

@keyframes avatar-pulse {
  0%, 100% {
    box-shadow:
      0 0 24px var(--accent-glow),
      0 0 48px var(--accent-glow-soft);
  }
  50% {
    box-shadow:
      0 0 32px rgba(255, 255, 255, 0.5),
      0 0 64px rgba(255, 255, 255, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-wrap {
    animation: none;
  }
}

.avatar {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
}

.name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.catchphrase {
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.65rem;
}

.bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Links */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition:
    background 0.25s,
    border-color 0.25s,
    transform 0.2s,
    box-shadow 0.25s;
}

.link:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

.link[data-brand="tiktok"]:hover {
  box-shadow: 0 6px 28px rgba(255, 255, 255, 0.12);
}

.link[data-brand="discord"]:hover {
  box-shadow: 0 6px 28px rgba(88, 101, 242, 0.35);
}

.link[data-brand="vrchat"]:hover {
  box-shadow: 0 6px 28px rgba(35, 212, 250, 0.3);
}

.link[data-brand="twitch"]:hover {
  box-shadow: 0 6px 28px rgba(145, 70, 255, 0.35);
}

.link[data-brand="youtube"]:hover {
  box-shadow: 0 6px 28px rgba(255, 0, 0, 0.3);
}

.link[data-brand="telegram"]:hover {
  box-shadow: 0 6px 28px rgba(38, 165, 228, 0.35);
}

.link[data-brand="kofi"]:hover {
  box-shadow: 0 6px 28px rgba(255, 94, 91, 0.35);
}

.link:active {
  transform: translateY(0);
}

.link--featured {
  background: var(--featured);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 32px var(--accent-glow),
    0 0 56px var(--accent-glow-soft);
}

.link--featured:hover {
  background: linear-gradient(135deg, #1a1a1a 0%, #333333 50%, #4a4a4a 100%);
  border-color: rgba(255, 255, 255, 0.35);
  filter: brightness(1.1);
  box-shadow:
    0 10px 40px rgba(255, 255, 255, 0.45),
    0 0 64px rgba(255, 255, 255, 0.15);
}

.link--featured .link__hint {
  color: rgba(255, 255, 255, 0.85);
}

.link__icon {
  position: relative;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: visible;
}

.link__icon img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.link:hover .link__icon img {
  transform: translateY(-5px) scale(1.12);
}

/* Logo steigt beim Hover nach oben auf */
.link__icon::after {
  content: "";
  position: absolute;
  inset: 0.45rem;
  z-index: 1;
  background: center / contain no-repeat;
  opacity: 0;
  transform: translateY(0) scale(1);
  pointer-events: none;
}

.link:hover .link__icon::after {
  animation: logo-rise 0.7s ease-out forwards;
}

.link__icon--tiktok::after {
  background-image: url("icons/tiktok.svg");
}

.link__icon--discord::after {
  background-image: url("icons/discord.svg");
}

.link__icon--vrchat::after {
  background-image: url("icons/vrchat.svg");
}

.link__icon--twitch::after {
  background-image: url("icons/twitch.svg");
}

.link__icon--youtube::after {
  background-image: url("icons/youtube.svg");
}

.link__icon--telegram::after {
  background-image: url("icons/telegram.svg");
}

.link__icon--kofi::after {
  background-image: url("icons/kofi.svg");
}

@keyframes logo-rise {
  0% {
    opacity: 0.55;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-32px) scale(0.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  .link:hover .link__icon img {
    transform: none;
  }

  .link:hover .link__icon::after {
    animation: none;
  }
}

.link--featured .link__icon {
  background: rgba(0, 0, 0, 0.35);
}

.link__icon--tiktok {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.link__icon--discord {
  background: #5865f2;
}

.link__icon--vrchat {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.3rem;
}

.link__icon--vrchat img {
  object-fit: contain;
  transform: scale(1.05);
}

.link__icon--twitch {
  background: #9146ff;
}

.link__icon--youtube {
  background: #ff0000;
}

.link__icon--telegram {
  background: #26a5e4;
}

.link__icon--kofi {
  background: #ff5e5b;
}

.link__text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.link__label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
}

.link__hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.link--featured .link__label,
.link--featured .link__hint {
  color: white;
}

.link__arrow {
  flex-shrink: 0;
  opacity: 0.5;
  font-size: 1.1rem;
  transition: transform 0.2s, opacity 0.2s;
}

.link:hover .link__arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* Footer */
.footer {
  margin-top: 2rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.35rem;
  margin-bottom: 0.85rem;
}

.footer-nav__link {
  font-family: inherit;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0.2rem 0.15rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.footer-nav__link:hover {
  color: var(--text);
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.footer-nav__sep {
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.4;
  user-select: none;
}

.footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.footer__credit {
  margin-bottom: 0.35rem;
  opacity: 0.55;
}

/* Modals */
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal[hidden] {
  display: none !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: min(80dvh, 520px);
  overflow-y: auto;
  background: #121212;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.modal__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.modal__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  padding-right: 1.5rem;
}

.modal__body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.modal__body p + p {
  margin-top: 0.75rem;
}

.modal__facts {
  list-style: none;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.modal__facts li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal__facts li + li {
  margin-top: 0.4rem;
}

.modal__facts span {
  flex-shrink: 0;
  min-width: 3.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.collab-list {
  list-style: none;
  margin: 0.85rem 0 0;
}

.collab-list .collab-card + .collab-card {
  margin-top: 0.65rem;
}

.collab-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.collab-card__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.collab-card__avatar {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.collab-card__avatar.is-broken {
  display: none;
}

.collab-card__initials {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a2a, #3f3f3f);
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.collab-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.collab-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.collab-card__btn {
  flex-shrink: 0;
  padding: 0.4rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.collab-card__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.modal__cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.1rem;
  background: #ff5e5b;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 10px;
  transition: filter 0.2s, transform 0.15s;
}

.modal__cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.modal__email {
  display: block;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  word-break: break-all;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.modal__email:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.footer__credit em {
  font-style: normal;
  opacity: 0.85;
}

@media (min-width: 480px) {
  .page {
    padding-top: 3.5rem;
  }

  .name {
    font-size: 2rem;
  }
}
