:root {
  --text: rgba(247, 250, 251, .94);
  --muted: rgba(225, 235, 237, .62);
  --soft: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .15);
  --line-strong: rgba(255, 255, 255, .28);
  --panel: rgba(52, 60, 62, .55);
  --panel-strong: rgba(27, 32, 34, .70);
  --accent: #d9eff2;
  --shadow: 0 34px 100px rgba(0, 0, 0, .54);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI Variable", "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: #050708;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  background: rgba(217, 239, 242, .32);
}

.scene,
.scene__image,
.scene__fog,
.scene__rain,
.scene__grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.scene {
  z-index: -10;
  overflow: hidden;
  background: #050708;
}

.scene__image {
  background:
    linear-gradient(180deg, rgba(2, 4, 5, .06), rgba(2, 4, 5, .66)),
    url("assets/foggy-city.jpg") center / cover no-repeat;
  transform: scale(1.045);
  filter: blur(4px) brightness(.62) saturate(.82) contrast(1.05);
  animation: bgDrift 18s ease-in-out infinite alternate;
}

.scene::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(206, 238, 238, .15), transparent 32%),
    radial-gradient(circle at 11% 14%, rgba(255, 255, 255, .08), transparent 24%),
    radial-gradient(circle at 50% 115%, rgba(0, 0, 0, .78), transparent 48%),
    linear-gradient(90deg, rgba(0,0,0,.56), transparent 34%, transparent 68%, rgba(0,0,0,.56));
  z-index: 3;
}

.scene__fog {
  z-index: 2;
  opacity: .62;
  filter: blur(20px);
  mix-blend-mode: screen;
}

.scene__fog--one {
  background:
    radial-gradient(ellipse at 24% 60%, rgba(211, 233, 234, .18), transparent 42%),
    radial-gradient(ellipse at 70% 50%, rgba(168, 205, 211, .15), transparent 40%);
  animation: fogOne 20s ease-in-out infinite alternate;
}

.scene__fog--two {
  background:
    radial-gradient(ellipse at 52% 42%, rgba(222, 246, 244, .14), transparent 34%),
    radial-gradient(ellipse at 84% 64%, rgba(159, 194, 201, .15), transparent 34%);
  animation: fogTwo 26s ease-in-out infinite alternate;
}

.scene__rain {
  z-index: 4;
  opacity: .12;
  background-image:
    linear-gradient(110deg, rgba(255,255,255,.0) 0%, rgba(255,255,255,.23) 42%, rgba(255,255,255,.0) 100%);
  background-size: 3px 28px;
  background-repeat: repeat;
  transform: skewX(-10deg);
  animation: rainFall .7s linear infinite;
}

.scene__grain {
  z-index: 5;
  opacity: .055;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.entry {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
  transition: opacity .55s ease, visibility .55s ease, transform .55s ease;
}

.entry.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
}

.mini-window {
  width: min(380px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.035)),
    rgba(48, 56, 58, .72);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter: blur(24px) saturate(1.16);
  cursor: pointer;
}

.mini-window__bar {
  height: 46px;
  display: grid;
  grid-template-columns: 42px 1fr 34px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(26, 31, 33, .34);
}

.win-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(142, 210, 214, .74);
  box-shadow: 0 0 18px rgba(142, 210, 214, .28);
}

.mini-title {
  justify-self: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(245, 249, 250, .86);
}

.mini-close {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.82);
  cursor: pointer;
}

.mini-close:hover,
.mini-close:focus-visible {
  background: rgba(255,255,255,.18);
  outline: none;
}

.mini-window__body {
  padding: 36px 28px 34px;
  text-align: center;
}

.mini-avatar,
.avatar {
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 999px;
  background:
    url("assets/avatar.jpg") center / cover no-repeat,
    linear-gradient(145deg, rgba(255,255,255,.20), rgba(255,255,255,.045));
  border: 1px solid rgba(255,255,255,.70);
  box-shadow:
    0 22px 55px rgba(0,0,0,.36),
    inset 0 1px 0 rgba(255,255,255,.18);
  color: rgba(255,255,255,.88);
  font-weight: 800;
}

.mini-avatar {
  width: 92px;
  height: 92px;
  font-size: 42px;
}


.mini-avatar,
.avatar {
  color: transparent;
  text-shadow: none;
}

.avatar span {
  display: none;
}

.mini-window h2 {
  margin: 18px 0 0;
  letter-spacing: -.04em;
}

.mini-window p {
  margin: 10px 0 0;
  color: var(--muted);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
}

.page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 46px 18px;
}

.profile-window {
  position: relative;
  width: min(470px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.032)),
    var(--panel);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255,255,255,.20),
    inset 0 -80px 120px rgba(0,0,0,.16);
  backdrop-filter: blur(24px) saturate(1.18);
  transform-style: preserve-3d;
}

.profile-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 52% 6%, rgba(255,255,255,.13), transparent 24%),
    linear-gradient(110deg, transparent 0%, rgba(255,255,255,.10) 42%, transparent 58%);
  transform: translateX(-120%);
  animation: micaShine 9s ease-in-out infinite;
  pointer-events: none;
}

.profile-window::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.035),
    inset 0 0 60px rgba(255,255,255,.022);
}

.titlebar {
  position: relative;
  z-index: 2;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px 0 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.025)),
    rgba(24, 29, 31, .32);
  border-bottom: 1px solid rgba(255,255,255,.075);
}

.titlebar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(205, 231, 234, .80);
  box-shadow: 0 0 22px rgba(205, 231, 234, .34);
}

.app-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(245,249,250,.78);
  white-space: nowrap;
}

.titlebar__controls {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.win-control {
  position: relative;
  width: 40px;
  height: 100%;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.70);
  opacity: .86;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, opacity .16s ease;
}

.win-control:hover,
.win-control:focus-visible {
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  opacity: 1;
  outline: none;
}

.win-control:active {
  background: rgba(255,255,255,.16);
}

.win-control--close:hover,
.win-control--close:focus-visible {
  background: rgba(232, 17, 35, .72);
}

.win-control--min::before {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  top: 26px;
  height: 1.5px;
  border-radius: 99px;
  background: currentColor;
}

.win-control--max::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 20px;
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
}

.win-control--close::before,
.win-control--close::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 17px;
  width: 1.7px;
  height: 16px;
  border-radius: 99px;
  background: currentColor;
}

.win-control--close::before {
  transform: rotate(45deg);
}

.win-control--close::after {
  transform: rotate(-45deg);
}

.profile {
  position: relative;
  z-index: 2;
  padding: 34px 28px 24px;
}

.avatar {
  width: 96px;
  height: 96px;
  font-size: 44px;
}

.eyebrow {
  margin: 18px 0 8px;
  text-align: center;
  color: rgba(245,249,250,.61);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(42px, 8vw, 62px);
  line-height: .95;
  letter-spacing: -.075em;
  text-shadow: 0 16px 55px rgba(0,0,0,.46);
}

.tagline {
  min-height: 24px;
  margin: 12px auto 18px;
  text-align: center;
  color: var(--muted);
  line-height: 1.55;
}

.skill-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 9px;
  margin: 0 0 14px;
}

.skill-card {
  min-width: 0;
  min-height: 56px;
  padding: 10px 9px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.032)),
    rgba(255,255,255,.046);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.skill-card:hover,
.skill-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.30);
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.052)),
    rgba(255,255,255,.06);
  outline: none;
}

.skill-card:active {
  transform: translateY(0);
}

.skill-card span {
  display: block;
  color: rgba(245,249,250,.46);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.skill-card b {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: rgba(245,249,250,.84);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.links {
  display: grid;
  gap: 10px;
}

.link-card {
  width: 100%;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.135);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.095), rgba(255,255,255,.035)),
    rgba(25, 31, 33, .26);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 14px 36px rgba(0,0,0,.12);
  color: var(--text);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.33);
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.055)),
    rgba(72, 83, 86, .33);
  box-shadow:
    0 18px 42px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.12);
  outline: none;
}

.link-card:active {
  transform: translateY(0);
}

.link-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.13);
  color: rgba(245,249,250,.82);
}

.link-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.link-card b {
  display: block;
  font-size: 15px;
}

.link-card small {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: rgba(245,249,250,.56);
  font-size: 12px;
}

.link-card em {
  color: rgba(245,249,250,.45);
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.audio-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 19px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.10), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.033)),
    rgba(18, 23, 25, .34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 18px 42px rgba(0,0,0,.12);
}

.player-head {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 12px;
}

.play,
.chip {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.105);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.play:hover,
.chip:hover,
.play:focus-visible,
.chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.30);
  background: rgba(255,255,255,.16);
  outline: none;
}

.play:active,
.chip:active {
  transform: translateY(0);
}

.play {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: rgba(245,249,250,.86);
  font-size: 17px;
  overflow: hidden;
}

.play::after {
  content: "";
  position: absolute;
  inset: -35%;
  background: conic-gradient(from 180deg, transparent, rgba(222,246,248,.26), transparent 42%);
  opacity: .55;
  animation: spin 5.5s linear infinite;
}

.play span {
  position: relative;
  z-index: 2;
}

.track {
  min-width: 0;
}

.track__top,
.track__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.track__top {
  margin-bottom: 8px;
}

.track__top b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.track__top span,
.track__bottom span {
  color: rgba(245,249,250,.52);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.track__bottom {
  margin-top: 7px;
}

.track__bottom span:last-child {
  color: rgba(217, 239, 242, .68);
}

.bar {
  position: relative;
  height: 8px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(255,255,255,.105);
  box-shadow: inset 0 1px 4px rgba(0,0,0,.23);
  cursor: pointer;
}

.bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,.88), rgba(187, 221, 224, .64));
  box-shadow: 0 0 18px rgba(214, 239, 241, .34);
}

.bar i {
  position: absolute;
  left: 0%;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 999px;
  background: rgba(238, 248, 249, .94);
  box-shadow: 0 0 18px rgba(220, 241, 243, .34);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.player-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.chip {
  min-height: 34px;
  border-radius: 12px;
  color: rgba(245,249,250,.70);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.volume {
  display: grid;
  grid-template-columns: 34px 1fr 44px;
  align-items: center;
  gap: 10px;
  color: rgba(245,249,250,.54);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.volume input {
  width: 100%;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.volume input::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  box-shadow: inset 0 1px 4px rgba(0,0,0,.28);
}

.volume input::-webkit-slider-thumb {
  appearance: none;
  width: 17px;
  height: 17px;
  margin-top: -5px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 999px;
  background: rgba(233, 247, 249, .94);
  box-shadow: 0 0 20px rgba(218, 241, 243, .26);
}

.volume input::-moz-range-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
}

.volume input::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 999px;
  background: rgba(233, 247, 249, .94);
}

.search-pill {
  display: grid;
  grid-template-columns: 18px 1fr auto auto;
  align-items: center;
  gap: 10px;
  margin: 16px auto 0;
  padding: 9px 10px 9px 12px;
  border: 1px solid rgba(255,255,255,.50);
  border-radius: 999px;
  background: rgba(24, 29, 31, .30);
  color: rgba(245,249,250,.64);
  font-size: 12px;
  line-height: 1.25;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.075);
}

.search-typing {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-typing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -.14em;
  animation: caret .9s steps(1) infinite;
}

.search-icon {
  position: relative;
  width: 13px;
  height: 13px;
  border: 1.8px solid currentColor;
  border-radius: 999px;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 1.8px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

.key-btn {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;
  background: rgba(255,255,255,.09);
  color: rgba(245,249,250,.72);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease, border-color .16s ease;
}

.key-btn:hover,
.key-btn:focus-visible {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.15);
  transform: translateY(-1px);
  outline: none;
}

.key-btn:active {
  transform: translateY(0);
}

@keyframes bgDrift {
  from {
    transform: scale(1.045) translate3d(-7px, -3px, 0);
  }
  to {
    transform: scale(1.075) translate3d(9px, 5px, 0);
  }
}

@keyframes fogOne {
  from {
    transform: translate3d(-5%, 2%, 0) scale(1.05);
  }
  to {
    transform: translate3d(5%, -1%, 0) scale(1.16);
  }
}

@keyframes fogTwo {
  from {
    transform: translate3d(5%, -1%, 0) scale(1.05);
  }
  to {
    transform: translate3d(-4%, 2%, 0) scale(1.13);
  }
}

@keyframes rainFall {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 28px;
  }
}

@keyframes micaShine {
  0%, 52% {
    transform: translateX(-120%);
  }
  72%, 100% {
    transform: translateX(120%);
  }
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

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

@media (max-width: 560px) {
  .page {
    padding: 18px 10px;
    place-items: start center;
  }

  .profile-window {
    width: min(100%, 440px);
    border-radius: 23px;
  }

  .profile {
    padding: 28px 14px 16px;
  }

  .titlebar {
    height: 48px;
    padding-left: 14px;
  }

  .win-control {
    width: 36px;
  }

  .avatar {
    width: 86px;
    height: 86px;
    font-size: 38px;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    text-align: center;
  }

  .link-card {
    grid-template-columns: 44px 1fr;
  }

  .link-card em {
    display: none;
  }

  .link-icon {
    width: 44px;
    height: 44px;
  }

  .player-head {
    grid-template-columns: 48px 1fr;
  }

  .play {
    width: 48px;
    height: 48px;
  }

  .player-controls {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-pill {
    grid-template-columns: 18px 1fr;
  }

  .key-btn {
    display: none;
  }
}

@media (max-width: 370px) {
  h1 {
    font-size: 40px;
  }

  .track__top,
  .track__bottom {
    display: block;
  }

  .track__top span,
  .track__bottom span {
    display: block;
    margin-top: 2px;
  }
}

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