.profile-peek {
  position: fixed;
  z-index: 1000;
  width: min(326px, calc(100vw - 24px));
  overflow: visible;
  border: 1px solid #46565d;
  border-radius: 20px;
  background: #0d1417;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .72), 0 0 0 1px rgba(184, 255, 0, .025), inset 0 1px rgba(255, 255, 255, .08);
  transform-origin: 32px 0;
}

.profile-peek::before {
  display: none;
}

.profile-peek::after {
  content: "";
  position: absolute;
  inset: 0 20px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(175, 255, 0, .55), transparent);
  pointer-events: none;
}

.profile-peek-banner {
  position: relative;
  height: 98px;
  overflow: hidden;
  border-radius: 19px 19px 0 0;
  background-color: #18221d;
  background-image: radial-gradient(circle at 82% 15%, rgba(167, 255, 0, .28), transparent 38%), linear-gradient(120deg, #1c2925, #10181b 58%, #27351a);
  background-position: center;
  background-size: cover;
}

.profile-peek-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(13, 20, 23, .5));
}

.profile-peek-main {
  position: relative;
  padding: 43px 14px 13px;
}

.profile-peek-avatar {
  top: -38px;
  left: 14px;
  width: 66px;
  height: 66px;
  border: 4px solid #0d1417;
  border-radius: 19px;
  background: linear-gradient(145deg, #26343a, #151d21);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .45), 0 0 0 1px #506068;
  font-size: 20px;
}

.profile-peek-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
}

.profile-peek-main > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  top: 11px;
  right: 14px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #53646d;
  border-radius: 10px;
  background: rgba(24, 34, 39, .88);
  color: #f4f7f8;
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.profile-peek-main > a:hover {
  border-color: #aaff00;
  background: rgba(39, 56, 38, .95);
  transform: translateY(-1px);
}

.profile-peek-main > a b {
  margin: 0;
  color: #b6ff00;
  line-height: 1;
}

.profile-peek header h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #f3f6f7;
  font-size: 16px;
  line-height: 1.2;
}

.profile-peek header small {
  display: block;
  margin-top: 4px;
  color: #738087;
  font-size: 10px;
}

.profile-peek .verified {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: #20dda2;
  color: #07120f;
  font-size: 11px;
  font-style: normal;
  box-shadow: 0 0 16px rgba(32, 221, 162, .28);
}

.profile-peek-main > p {
  min-height: 16px;
  margin: 14px 0 10px;
  color: #b0b9bd;
  font-size: 11px;
  line-height: 1.5;
}

.profile-peek-badges {
  display: flex;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid #263136;
  border-bottom: 1px solid #263136;
}

.profile-peek-badges span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #4c5b63;
  border-radius: 9px;
  background: linear-gradient(145deg, #1b282c, #11191c);
  font-size: 17px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

.profile-peek footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 9px;
}

.profile-peek footer span {
  padding: 9px 4px 7px;
  border: 1px solid rgba(255, 255, 255, .025);
  border-radius: 10px;
  background: linear-gradient(145deg, #151f23, #11191c);
  text-align: center;
}

.profile-peek footer b {
  display: block;
  color: #eff4f5;
  font-size: 12px;
}

.profile-peek footer small {
  display: block;
  margin-top: 3px;
  color: #66737a;
  font-size: 7px;
}

@media (prefers-reduced-motion: no-preference) {
  .profile-peek.is-visible { animation: profile-peek-enter .24s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes profile-peek-enter {
    from { opacity: 0; transform: translateY(-7px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}
