@font-face {
  font-family: 'Maple Mono';
  src: url('MapleMonoNL-Regular.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --card-bg: #0A0A0A;
  --card-border: #9b9b9b;
  --item-bg: rgba(255, 255, 255, 0.06);
  --item-hover: rgba(255, 255, 255, 0.1);
  --text-main: #ffffff;
  --text-dim: #a1a1aa;
  --text-muted: #71717a;
  --radius-card: 24px;
  --radius-item: 16px;
  --font-main: 'Maple Mono', monospace;
  --font-mono: 'Maple Mono', monospace;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

html,
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #000000;
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
}

img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.bg-parallax {
  position: fixed;
  top: -4%;
  left: -4%;
  width: 108%;
  height: 108%;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  perspective: 1000px;
  position: relative;
  z-index: 1;
}

.card {
  width: 100%;
  max-width: 520px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: none;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.profile {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 3;
}

.avatar-wrap {
  position: relative;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
  border: none;
  transition: transform 0.25s var(--ease-spring);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.avatar-wrap:hover .avatar {
  transform: scale(1.04) translate3d(0, 0, 0);
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.user-handle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bio {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 400;
  line-height: 1.35;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.servers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 3;
}

.server-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--item-bg);
  border: none;
  border-radius: var(--radius-item);
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.server-item:hover {
  background: var(--item-hover);
}

.server-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.server-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: none;
}

.server-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.server-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.server-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.4rem;
  cursor: pointer;
  transform: translate3d(0, 0, 0);
}

.icon-link svg {
  width: 1.35em;
  height: 1.35em;
  pointer-events: none;
  transition: color 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.icon-link:hover svg {
  color: #ffffff;
  transform: scale(1.15) translate3d(0, 0, 0);
}

.icon-link:active svg {
  transform: scale(0.92) translate3d(0, 0, 0);
}

@media (max-width: 540px) {
  .page {
    padding: 20px 14px;
  }

  .card {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .server-desc {
    display: none;
  }
}