:root {
  --bg-0: #08040f;
  --bg-1: #12071f;
  --bg-2: #24103f;
  --bg-photo: url("images/background.jpg");
  --card: rgba(19, 10, 32, 0.74);
  --card-edge: rgba(222, 157, 255, 0.28);
  --text-main: #f7efff;
  --text-soft: #c8b6dc;
  --accent: #c774ff;
  --accent-hot: #ff54d0;
  --accent-cool: #67e6ff;
  --online: #53f3a4;
  --idle: #f8d159;
  --dnd: #ff5c72;
  --offline: #6d5f80;
  --card-surface:
    linear-gradient(120deg, rgba(40, 36, 44, 0.48), rgba(25, 22, 30, 0.48)),
    rgba(58, 53, 60, 0.34);
  --radius-card: 22px;
  --radius-avatar: 16px;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  color: var(--text-main);
  background:
    linear-gradient(rgba(15, 12, 20, 0.58), rgba(15, 12, 20, 0.68)),
    var(--bg-photo) center center / cover no-repeat fixed,
    var(--bg-0);
  overflow-x: hidden;
}

.atmosphere,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.atmosphere {
  background:
    radial-gradient(
      circle at 80% 15%,
      rgba(255, 84, 208, 0.08),
      transparent 34%
    ),
    radial-gradient(
      circle at 22% 78%,
      rgba(103, 230, 255, 0.07),
      transparent 34%
    ),
    linear-gradient(165deg, rgba(18, 12, 26, 0.28), rgba(8, 5, 14, 0.64));
  filter: contrast(1.06) saturate(0.96);
}

.grain {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mix-blend-mode: soft-light;
  opacity: 0.28;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 52px));
  margin: 108px auto 60px;
  display: grid;
  gap: 18px;
}

.shell > * {
  opacity: 0;
  transform: translateY(14px);
  animation: card-enter 520ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.shell > *:nth-child(2) {
  animation-delay: 70ms;
}

.shell > *:nth-child(3) {
  animation-delay: 140ms;
}

.shell > *:nth-child(4) {
  animation-delay: 210ms;
}

.card {
  background:
    linear-gradient(120deg, rgba(38, 18, 57, 0.45), rgba(12, 7, 20, 0.28)),
    var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--card-edge);
  box-shadow:
    0 16px 56px rgba(0, 0, 0, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 48px rgba(174, 97, 255, 0.05);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.hero {
  padding: 30px 34px 16px;
  position: relative;
  isolation: isolate;
  background: var(--card-surface);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(255, 84, 208, 0.5),
    rgba(103, 230, 255, 0.3),
    rgba(199, 116, 255, 0.5)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

h1 {
  margin: 0 0 14px;
  display: block;
  font-family: "Silkscreen", sans-serif;
  font-size: clamp(2.55rem, 2.44rem + 0.28vw, 2.9rem);
  line-height: 1.03;
  letter-spacing: 0.085em;
  color: #d966d3;
  text-shadow: 0 0 11px rgba(217, 102, 211, 0.25);
}

.bio {
  margin: 0;
  max-width: 46ch;
  font-family: "Silkscreen", sans-serif;
  font-size: clamp(1.08rem, 1.03rem + 0.16vw, 1.22rem);
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #ddd3e7;
}

.bio-block {
  display: block;
}

.bio-block + .bio-block {
  margin-top: 0.85em;
}

.socials {
  margin-top: 22px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  position: relative;
}

.socials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  width: 76%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(218, 165, 246, 0.45),
    rgba(255, 255, 255, 0)
  );
}

.socials a {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #e8dff4;
  background: transparent;
  border: none;
  font-size: 1.95rem;
  line-height: 1;
  transition:
    transform 170ms ease,
    color 170ms ease,
    filter 180ms ease;
}

.social-icon-image {
  width: 1em;
  height: 1em;
  display: block;
  object-fit: contain;
  border-radius: 2px;
}

.socials a:hover {
  transform: translateY(-2px);
  color: #fff;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.24));
}

.socials a:focus-visible {
  outline: 2px solid rgba(228, 164, 255, 0.72);
  outline-offset: 4px;
  border-radius: 8px;
}

.reactions-inline {
  padding: 4px 0 0;
  display: grid;
  justify-items: center;
  gap: 9px;
}

.reactions-title {
  margin: 0;
  font-family: "Silkscreen", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: #c7b2dc;
}

.reactions-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.reaction-btn {
  appearance: none;
  border: 1px solid rgba(194, 141, 230, 0.36);
  background: var(--card-surface);
  color: #f4ebff;
  border-radius: 999px;
  min-width: 84px;
  padding: 6px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: "Silkscreen", sans-serif;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition:
    transform 160ms ease,
    border-color 170ms ease,
    box-shadow 180ms ease;
}

.reaction-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(219, 184, 246, 0.46);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(184, 152, 212, 0.2);
}

.reaction-btn:focus-visible {
  outline: 2px solid rgba(228, 164, 255, 0.72);
  outline-offset: 2px;
}

.reaction-btn.active {
  border-color: rgba(243, 198, 255, 0.84);
  box-shadow: 0 0 12px rgba(236, 120, 255, 0.22);
}

.reaction-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.reaction-emoji {
  font-size: 0.96rem;
}

.reaction-count {
  min-width: 1.35em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.reactions-status {
  margin: 0;
  min-height: 0.9rem;
  font-family: "Silkscreen", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: #d28de4;
}

.hero-copy {
  min-width: 0;
  margin-top: 48px;
}

.hero-avatar {
  position: absolute;
  top: -48px;
  left: 22px;
  width: 110px;
  height: 110px;
  margin: 0;
  border-radius: var(--radius-avatar);
  overflow: visible;
  background: #140a23;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}

.hero-avatar::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    rgba(255, 84, 208, 0.95),
    rgba(199, 116, 255, 0.9),
    rgba(103, 230, 255, 0.92),
    rgba(255, 84, 208, 0.95)
  );
  z-index: 0;
}

.hero-avatar::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(237, 159, 255, 0.34),
    rgba(103, 230, 255, 0.05) 66%,
    transparent 76%
  );
  filter: blur(6px);
  opacity: 0.85;
}

.hero-avatar img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.3),
    rgba(28, 18, 40, 0.55)
  );
  object-fit: cover;
}

.hero-topline {
  position: absolute;
  top: 22px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e5dde8;
  font-family: "Silkscreen", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.hero-meta {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
}

.meta-icon {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
  stroke: currentcolor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-views-live {
  display: inline-block;
  min-width: 20px;
  font-family: "Silkscreen", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #efeaf5;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.hero-divider {
  opacity: 0.6;
}

.live-card,
.activity-card {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 17px;
  font-family: "Silkscreen", sans-serif;
  background: var(--card-surface);
  border-color: rgba(194, 141, 230, 0.36);
}

.live-card {
  text-decoration: none;
  color: inherit;
  transition:
    transform 180ms ease,
    border-color 200ms ease,
    box-shadow 220ms ease;
}

.live-card.is-disabled {
  pointer-events: none;
}

.live-card.is-disabled .external {
  opacity: 0.38;
}

.live-card:hover {
  transform: translateY(-2px);
  border-color: rgba(219, 184, 246, 0.46);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(184, 152, 212, 0.2);
}

.live-card:focus-visible {
  outline: 2px solid rgba(228, 164, 255, 0.72);
  outline-offset: 4px;
}

.fancy-avatar-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: var(--radius-avatar);
  flex-shrink: 0;
  overflow: visible;
  background: #140a23;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}

.fancy-avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    rgba(255, 84, 208, 0.95),
    rgba(199, 116, 255, 0.9),
    rgba(103, 230, 255, 0.92),
    rgba(255, 84, 208, 0.95)
  );
  z-index: 0;
}

.fancy-avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(237, 159, 255, 0.34),
    rgba(103, 230, 255, 0.05) 66%,
    transparent 76%
  );
  filter: blur(6px);
  opacity: 0.7;
}

.status-avatar,
.activity-art {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  border-radius: var(--radius-avatar);
  padding: 2px;
  border: none;
  object-fit: cover;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.3),
    rgba(28, 18, 40, 0.55)
  );
}

.status-avatar-wrap {
  z-index: 1;
}

.activity-art-wrap {
  z-index: 1;
}

.status-copy,
.activity-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.eyebrow {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.status-line {
  margin: 3px 0 4px;
  display: flex;
  align-items: center;
  font-size: clamp(1.32rem, 1.24rem + 0.26vw, 1.58rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f0e9f8;
}

#discordName {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.status-text,
.activity-sub {
  margin: 0;
  font-family: "Silkscreen", sans-serif;
  color: var(--text-soft);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.status-text-content {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.38rem;
  overflow-wrap: anywhere;
}

.status-emoji {
  width: 1.04em;
  height: 1.04em;
  object-fit: contain;
  display: inline-block;
  flex: 0 0 auto;
}

.status-emoji-unicode {
  line-height: 1;
  font-size: 1.08em;
}

.status-dot {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 3px solid rgba(20, 10, 35, 0.96);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

.status-dot::before {
  content: "";
  display: block;
}

.status-dot.online {
  background: #23a55a;
}

.status-dot.idle {
  background: #f0b232;
}

.status-dot.idle::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(20, 10, 35, 0.95);
  transform: translate(-2px, -2px);
}

.status-dot.dnd {
  background: #f23f43;
}

.status-dot.dnd::before {
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
}

.status-dot.streaming {
  background: #593695;
}

.status-dot.streaming::before {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid rgba(255, 255, 255, 0.98);
  transform: translateX(1px);
}

.status-dot.offline {
  background: #7f8494;
}

.status-dot.offline::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(54, 58, 68, 0.95);
}

.external {
  font-family: "Silkscreen", sans-serif;
  color: #bda8d8;
  font-size: 0.92rem;
}

.external-icon {
  width: 1rem;
  height: 1rem;
  display: block;
  stroke: currentcolor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.activity-title {
  margin: 3px 0 4px;
  font-family: "Silkscreen", sans-serif;
  font-size: clamp(1.36rem, 1.28rem + 0.28vw, 1.66rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f0e9f8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline.hidden {
  display: none;
}

.timeline.elapsed-only .bar {
  background: linear-gradient(
    90deg,
    rgba(255, 102, 179, 0.18),
    rgba(132, 214, 255, 0.12)
  );
}

.timeline.elapsed-only .bar-fill {
  width: 100%;
  opacity: 0.9;
  background-size: 200% 100%;
  animation: elapsed-sheen 4.8s linear infinite;
}

.time {
  min-width: 34px;
  font-family: "Silkscreen", sans-serif;
  color: #dfd1ee;
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.timeline.elapsed-only .time:last-child {
  min-width: 64px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: var(--text-soft);
}

.bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(233, 213, 255, 0.27);
  overflow: hidden;
}

.bar-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--accent-hot),
    var(--accent),
    var(--accent-cool)
  );
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes elapsed-sheen {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 200% 50%;
  }
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  .shell {
    width: min(560px, calc(100% - 20px));
    margin: 86px auto 32px;
    gap: 14px;
  }

  .hero {
    padding: 22px 14px 13px;
  }

  .hero-topline {
    top: 16px;
    right: 12px;
    max-width: calc(100% - 112px);
    justify-content: flex-end;
    font-size: 0.62rem;
    gap: 8px;
  }

  .hero-avatar {
    width: 82px;
    height: 82px;
    top: -34px;
    left: 14px;
    border-radius: 14px;
  }

  .hero-copy {
    margin-top: 40px;
  }

  h1 {
    font-size: clamp(1.2rem, 7.5vw, 2rem);
    letter-spacing: 0.05em;
  }

  .bio {
    font-size: 0.83rem;
    max-width: 100%;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
  }

  .socials {
    margin-top: 20px;
    padding-top: 13px;
    gap: 12px;
  }

  .socials::before {
    left: 7%;
    width: 86%;
  }

  .socials a {
    font-size: 1.55rem;
  }

  .reactions-title {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }

  .reaction-btn {
    min-width: 74px;
    padding: 5px 12px;
    font-size: 0.64rem;
  }

  .reaction-emoji {
    font-size: 0.88rem;
  }

  .reactions-status {
    font-size: 0.54rem;
  }

  .live-card,
  .activity-card {
    padding: 13px;
    gap: 12px;
    overflow: hidden;
  }

  .fancy-avatar-wrap {
    width: 72px;
    height: 72px;
    border-radius: 14px;
  }

  .status-avatar,
  .activity-art {
    width: 72px;
    height: 72px;
    border-radius: 14px;
  }

  .status-dot {
    width: 18px;
    height: 18px;
    right: 2px;
    bottom: 2px;
    border-width: 2.5px;
  }

  .status-line,
  .activity-title {
    font-size: 1.05rem;
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }

  .status-text,
  .activity-sub {
    font-size: 0.9rem;
  }

  .eyebrow {
    font-size: 0.67rem;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 430px) {
  .timeline {
    display: grid;
    grid-template-columns: auto auto;
    gap: 6px 10px;
    align-items: center;
  }

  .bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .time:last-child {
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shell > * {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .socials a,
  .live-card,
  .reaction-btn,
  .timeline.elapsed-only .bar-fill {
    transition: none;
    animation: none;
  }

  .socials a:hover,
  .live-card:hover,
  .reaction-btn:hover {
    transform: none;
    filter: none;
  }
}
