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

html {
  height: 100%;
}

body {
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #0a0a0a;
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.bg-blur {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(100px) saturate(1.5);
  transform: scale(1.1);
  opacity: 0.8;
  z-index: -2;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.card {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 566px;
  min-height: auto;
  max-width: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.profile-section {
  position: relative;
  height: 420px;
}

.profile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.profile-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    rgba(26, 26, 26, 0.6) 70%,
    rgba(26, 26, 26, 0.8) 85%,
    #1a1a1a 100%
  );
}

.profile-content {
  position: absolute;
  bottom: -2rem;
  left: 0;
  right: 0;
  padding: 1.5rem;
  text-align: center;
}

.profile-name {
  position: relative;
  z-index: 10;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.links-section {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 200px;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-card {
  display: block;
  position: relative;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.2s ease;
  cursor: pointer;
  outline: none;
}

.link-card:hover {
  transform: scale(1.02);
}

.link-card.is-holding .link-card-inner {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.link-card-inner {
  position: relative;
  border-radius: 14px;
  transition: all 0.2s ease;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.08);
}

.link-card:hover .link-card-inner {
  background-color: rgba(255, 255, 255, 0.12);
}

.link-simple {
  display: flex;
  align-items: center;
  padding: 14px 16px;
}

.link-text {
  flex: 1;
  min-width: 0;
}

.link-title {
  margin: 0;
  line-height: 1.2;
  font-weight: 500;
  font-size: 16px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-subtitle {
  margin: 2px 0 0;
  line-height: 1.35;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

.press-hold-overlay {
  position: absolute;
  inset: -2px;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 20;
  border-radius: calc(14px + 2px);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.press-hold-overlay.is-visible {
  display: flex;
}

.press-hold-overlay.is-holding .press-hold-label {
  transform: scale(0.98);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.press-hold-progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.press-hold-progress::after {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  background: #ffffff;
  border-radius: inherit;
}

.press-hold-overlay.is-holding .press-hold-progress::after {
  animation: holdProgress 0.5s linear forwards;
}

@keyframes holdProgress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.press-hold-label {
  padding: 6px 14px;
  font-size: 12px;
  background-color: #ffffff;
  border-radius: 6px;
  color: #000000;
  font-weight: 500;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.press-hold-hint {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.3s ease-out forwards;
}

@media (max-width: 767px) {
  .page {
    padding-top: 0;
    padding-bottom: 0;
  }

  .card {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .profile-section {
    height: 24rem;
  }
}
