.card {
  width: min(420px, 100%);
  padding: 30px 26px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(10px) saturate(.6);
  -webkit-backdrop-filter: blur(10px) saturate(.6);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  text-align: center;
  transform-style: preserve-3d;
  will-change: transform;

  opacity: 0;
  transform: translateY(14px) scale(.98);
  transition: opacity .9s ease .15s, transform .9s ease .15s;
}

body.entered .card {
  opacity: 1;
  transform: none;
}

.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .75);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .05), 0 0 40px rgba(255, 255, 255, .18);
  filter: grayscale(.15);
}

.name-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-shadow: 0 0 18px rgba(255, 255, 255, .35);
}

.sticker {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(140, 150, 255, .45));
  animation: float 3.2s ease-in-out infinite;
}

.badge-row {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 7px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 14px rgba(255, 255, 255, .15);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
}

.typed {
  height: 20px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--dim);
}

.typed::after {
  content: "_";
  margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, .04);
  font-size: 12px;
  color: #cfcfcf;
}

@keyframes float {
  50% { transform: translateY(-3px) rotate(-2deg); }
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}

@media (max-width: 420px) {
  .card { padding: 26px 18px 18px; }
  h1 { font-size: 26px; }
}
