@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: #080808;
  color: #ffffff;
  font-family: 'Caveat', cursive;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.content-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.bio-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-name {
  font-family: 'Caveat', cursive;
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  cursor: pointer;
  padding: 4px 16px;
  border-radius: 8px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.profile-name:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.profile-name:active {
  transform: scale(0.98);
}

.bio-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bio-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bio-link:hover {
  background: #191919;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.bio-link:active {
  transform: translateY(0);
}

.link-title {
  font-family: 'Caveat', cursive;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.link-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #888888;
  transition: color 0.25s ease, transform 0.25s ease;
}

.link-arrow svg {
  width: 18px;
  height: 18px;
}

.bio-link:hover .link-arrow {
  color: #ffffff;
  transform: translate(2px, -2px);
}

.space-context-menu {
  position: fixed;
  z-index: 1000;
  min-width: 190px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.96) translateY(4px);
  transform-origin: top left;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  user-select: none;
}

.space-context-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.menu-items-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 9px 14px;
  border-radius: 6px;
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  font-weight: 600;
  color: #d1d5db;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.menu-item:active {
  background: rgba(255, 255, 255, 0.12);
}

.cosmic-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
}

.cosmic-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-text {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffffff;
}

@media (max-width: 480px) {
  .bio-container {
    gap: 26px;
  }

  .profile-name {
    font-size: 3rem;
  }

  .bio-link {
    padding: 14px 18px;
  }

  .link-title {
    font-size: 1.7rem;
  }
}
