:root {
  color-scheme: dark;
  --text: #f7fbff;
  --muted: rgba(234, 243, 255, 0.72);
  --soft: rgba(234, 243, 255, 0.12);
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(10, 24, 48, 0.58);
  --panel-strong: rgba(10, 22, 42, 0.78);
  --glow: rgba(121, 210, 255, 0.34);
  --accent: #8be9ff;
  --accent-warm: #f5c06a;
  --spotify: #1ed760;
  --danger: #ff5b72;
  --idle: #f2c94c;
  --online: #43e38d;
  --offline: #8994a7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #071326;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(5, 14, 27, 0.1), rgba(2, 7, 15, 0.42)),
    url("assets/blue-night-bg.png") center / cover fixed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 48% 46%, rgba(117, 201, 255, 0.18), transparent 22rem),
    linear-gradient(90deg, rgba(6, 18, 34, 0.42), rgba(12, 79, 91, 0.1), rgba(5, 17, 32, 0.5));
  pointer-events: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 1rem;
  place-items: center;
  isolation: isolate;
}

.snow-canvas {
  position: fixed;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.ambient {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.8;
}

.ambient-a {
  top: 16%;
  left: 19%;
  width: 0.28rem;
  height: 0.28rem;
  background: var(--accent-warm);
  box-shadow:
    16rem 7rem 0 rgba(245, 192, 106, 0.62),
    35rem 1.5rem 0 rgba(139, 233, 255, 0.56),
    42rem 19rem 0 rgba(245, 192, 106, 0.52);
  animation: drift 8s ease-in-out infinite alternate;
}

.ambient-b {
  right: 12%;
  bottom: 21%;
  width: 0.22rem;
  height: 0.22rem;
  background: #b7f5ff;
  box-shadow:
    -19rem -4rem 0 rgba(139, 233, 255, 0.5),
    -42rem 13rem 0 rgba(245, 192, 106, 0.48),
    -55rem -10rem 0 rgba(139, 233, 255, 0.5);
  animation: drift 10s ease-in-out infinite alternate-reverse;
}

.profile-panel {
  position: relative;
  z-index: 2;
  width: min(40rem, calc(100vw - 2rem));
  min-height: 22.5rem;
  padding: 2.45rem 2.6rem 2.1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    var(--panel);
  box-shadow:
    0 2rem 7rem rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(132%);
}

.profile-panel::before {
  position: absolute;
  inset: -40% -18% auto;
  height: 12rem;
  content: "";
  background: radial-gradient(closest-side, rgba(116, 202, 255, 0.26), transparent);
  opacity: 0.75;
  pointer-events: none;
}

.profile-top {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
}

.avatar-wrap {
  position: relative;
  width: 6.6rem;
  height: 6.6rem;
  margin-bottom: 1.05rem;
}

.avatar {
  width: 100%;
  height: 100%;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.55), transparent 0.35rem),
    linear-gradient(135deg, #89e9ff, #1a325d 48%, #f5c06a);
  object-fit: cover;
  box-shadow: 0 0 2rem rgba(125, 213, 255, 0.28);
}

.status-dot {
  position: absolute;
  right: 0.45rem;
  bottom: 0.48rem;
  width: 1rem;
  height: 1rem;
  border: 3px solid rgba(8, 20, 37, 0.92);
  border-radius: 999px;
  background: var(--offline);
  box-shadow: 0 0 1.2rem currentColor;
}

.status-online {
  background: var(--online);
  color: var(--online);
}

.status-idle {
  background: var(--idle);
  color: var(--idle);
}

.status-dnd {
  background: var(--danger);
  color: var(--danger);
}

.status-offline {
  background: var(--offline);
  color: var(--offline);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 100%;
  font-size: 2rem;
  font-weight: 780;
  line-height: 1.05;
  text-shadow:
    0 0 1rem rgba(255, 255, 255, 0.48),
    0 0 2.4rem rgba(104, 196, 255, 0.28);
  overflow-wrap: anywhere;
}

.handle {
  min-height: 1.25rem;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.72rem;
}

.meta-pill,
.views-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.45rem;
  color: rgba(255, 255, 255, 0.93);
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
}

.meta-pill svg,
.views-pill svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.social-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.social-link {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 1.25rem rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 1.6rem rgba(139, 233, 255, 0.2);
  outline: none;
  transform: translateY(-2px);
}

.social-link svg {
  width: 1.32rem;
  height: 1.32rem;
  fill: currentColor;
}

.activity-board {
  position: relative;
  min-height: 5rem;
  margin-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.activity-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.activity {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 4.85rem;
}

.activity-cover {
  position: relative;
  display: grid;
  width: 4.75rem;
  height: 4.75rem;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.28), transparent 1.7rem),
    linear-gradient(135deg, rgba(139, 233, 255, 0.34), rgba(10, 24, 48, 0.68) 52%, rgba(245, 192, 106, 0.34));
  background-position: center;
  background-size: cover;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.24);
}

.activity-cover svg {
  width: 1.65rem;
  height: 1.65rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  opacity: 0.9;
}

.activity-copy {
  min-width: 0;
}

.activity-kind {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 1rem var(--glow);
}

.activity-spotify .pulse {
  background: var(--spotify);
  box-shadow: 0 0 1rem rgba(30, 215, 96, 0.42);
}

.activity-title {
  margin-top: 0.24rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.22;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-subtitle {
  margin-top: 0.18rem;
  color: rgba(234, 243, 255, 0.76);
  font-size: 0.88rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress {
  height: 0.34rem;
  margin-top: 0.72rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--spotify), #a8ffca);
  transition: width 400ms linear;
}

.time-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
  color: rgba(234, 243, 255, 0.66);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.empty-activity {
  display: grid;
  min-height: 5rem;
  place-items: center;
  color: rgba(234, 243, 255, 0.68);
  font-size: 0.92rem;
  text-align: center;
}

.views-pill {
  position: absolute;
  bottom: 1.05rem;
  left: 1.05rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0.6rem, -0.9rem, 0);
  }
}

@media (max-width: 680px) {
  body {
    overflow: auto;
  }

  .page-shell {
    align-content: center;
    padding: 1rem;
  }

  .profile-panel {
    width: min(100%, 26rem);
    min-height: 0;
    padding: 2rem 1.15rem 2rem;
  }

  .avatar-wrap {
    width: 5.7rem;
    height: 5.7rem;
  }

  h1 {
    font-size: 1.72rem;
  }

  .activity {
    grid-template-columns: 3.95rem minmax(0, 1fr);
    gap: 0.85rem;
  }

  .activity-cover {
    width: 3.95rem;
    height: 3.95rem;
  }

  .views-pill {
    position: static;
    justify-content: center;
    margin-top: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
