:root {
  color-scheme: dark;
  --background: #050506;
  --surface: rgba(16, 16, 18, 0.86);
  --surface-hover: rgba(24, 24, 27, 0.94);
  --text: #f3f3f4;
  --muted: #9b9ba1;
  --accent: #dedee2;
  --accent-bright: #f1f1f3;
  --border: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.28);
  --glass-border: rgba(232, 242, 250, 0.15);
  --glass-border-bright: rgba(239, 247, 252, 0.3);
  --glass-surface: rgba(8, 9, 12, 0.46);
  --glow-soft: rgba(220, 237, 248, 0.075);
  --glow-bright: rgba(235, 247, 255, 0.14);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--background);
}

body,
#root {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

.page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(2rem, 4vh, 3rem) 1.75rem 2rem;
  background:
    radial-gradient(circle at 50% 28%, rgba(224, 238, 247, 0.045), transparent 34rem),
    radial-gradient(ellipse at 50% 72%, rgba(204, 222, 235, 0.018), transparent 42rem),
    var(--background);
}

.page::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: '';
  opacity: 0.028;
  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='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.background-terrain {
  position: fixed;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.04));
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.5rem;
  background: #111113;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.profile-shell {
  --avatar-size: clamp(10.75rem, 10vw, 12rem);
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(100%, 71rem);
  margin: 0 auto;
  text-align: center;
}

.profile-shell::before {
  position: absolute;
  z-index: -1;
  inset: -0.8rem -1rem -1.1rem;
  border: 1px solid var(--glass-border);
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 249, 255, 0.065), transparent 26rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 28%, rgba(255, 255, 255, 0.012) 72%),
    var(--glass-surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 4rem rgba(224, 239, 249, 0.012),
    0 0 0 1px rgba(255, 255, 255, 0.018),
    0 0 2.75rem var(--glow-soft),
    0 2.8rem 7rem rgba(0, 0, 0, 0.48);
  content: '';
  pointer-events: none;
  backdrop-filter: blur(1.05rem) saturate(112%);
  -webkit-backdrop-filter: blur(1.05rem) saturate(112%);
}

.banner {
  position: relative;
  height: clamp(15.75rem, 15.25vw, 18.25rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  background: #0b0b0d;
  box-shadow:
    0 1.75rem 5rem rgba(0, 0, 0, 0.5),
    0 0 2.8rem rgba(222, 239, 249, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.018),
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.banner::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(245, 251, 255, 0.075), transparent 18%, transparent 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 22%, rgba(0, 0, 0, 0.08));
  box-shadow: inset 0 0 2.5rem rgba(220, 237, 248, 0.018);
  content: '';
  pointer-events: none;
}

.banner img {
  filter: grayscale(1) saturate(.08) brightness(.68) contrast(1.08);
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.avatar {
  position: relative;
  z-index: 2;
  display: grid;
  width: var(--avatar-size);
  height: var(--avatar-size);
  margin: calc(var(--avatar-size) / -2) auto 0;
  overflow: hidden;
  place-items: center;
  border: 3px solid rgba(239, 247, 252, 0.42);
  border-radius: 50%;
  background: #040306;
  box-shadow:
    0 0 0 0.4rem var(--background),
    0 0 0 0.46rem rgba(235, 246, 253, 0.055),
    0 1.5rem 3.75rem rgba(0, 0, 0, 0.68),
    0 0 1.8rem rgba(235, 247, 255, 0.14),
    0 0 3.8rem rgba(210, 231, 244, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.avatar::after {
  position: absolute;
  inset: 0.42rem;
  border: 1px solid rgba(241, 249, 255, 0.09);
  border-radius: inherit;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.055);
  content: '';
  pointer-events: none;
}

.avatar img {
  display: block;
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.profile-copy {
  padding: 1.45rem 1.25rem 0;
}

.profile-copy h1 {
  margin: 0;
  font-family: 'Sora', 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(4rem, 4vw, 4.75rem);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-shadow:
    0 0 1.5rem rgba(232, 245, 253, 0.12),
    0 0.2rem 0.75rem rgba(0, 0, 0, 0.42);
}

.name-rule {
  display: block;
  width: 3rem;
  height: 0.2rem;
  margin: 1.15rem auto 0.85rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow:
    0 0 0.8rem rgba(238, 248, 255, 0.16),
    0 0 1.6rem rgba(211, 232, 246, 0.07);
}

.role {
  margin: 0;
  color: var(--accent-bright);
  font-family: 'Sora', 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.38rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.bio {
  max-width: 45rem;
  margin: 0.75rem auto 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
}

.links {
  display: grid;
  width: min(100%, 44.25rem);
  gap: 0.75rem;
  margin: 1.35rem auto 0;
}

.link-card {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 5.125rem;
  padding: 0.72rem 1.25rem 0.72rem 0.8rem;
  border: 1px solid var(--glass-border);
  border-radius: 0.85rem;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.012) 38%, transparent 74%),
    rgba(9, 10, 13, 0.64);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.07),
    inset 0 0 1.8rem rgba(222, 238, 248, 0.012),
    0 0 0 1px rgba(255, 255, 255, 0.01),
    0 0.8rem 2rem rgba(0, 0, 0, 0.22),
    0 0 1.4rem rgba(222, 239, 250, 0.025);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  backdrop-filter: blur(1rem) saturate(108%);
  -webkit-backdrop-filter: blur(1rem) saturate(108%);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.link-card:hover {
  border-color: var(--glass-border-bright);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025) 42%, transparent 78%),
    rgba(13, 14, 17, 0.76);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.11),
    inset 0 0 2rem rgba(228, 242, 251, 0.018),
    0 0 0 1px rgba(237, 247, 253, 0.025),
    0 1rem 2.5rem rgba(0, 0, 0, 0.3),
    0 0 1.8rem rgba(225, 241, 251, 0.085);
  transform: translateY(-2px);
}

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

.link-card:focus-visible,
.social-row a:focus-visible {
  outline: 2px solid #f0f0f2;
  outline-offset: 3px;
}

.link-icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: linear-gradient(145deg, #f0f0f2, #9d9da4);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.22),
    0 0 1.4rem rgba(235, 247, 255, 0.09),
    0 0 2.5rem rgba(211, 233, 247, 0.035);
  color: #101012;
  transition:
    box-shadow 200ms ease,
    filter 200ms ease,
    transform 200ms ease;
}

.link-card:hover .link-icon {
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.32),
    0 0 1.4rem rgba(241, 250, 255, 0.18),
    0 0 2.8rem rgba(215, 236, 249, 0.075);
  filter: brightness(1.04);
  transform: scale(1.025);
}

.link-icon svg {
  width: 1.82rem;
  height: 1.82rem;
}

.link-text {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.link-text strong {
  overflow: hidden;
  font-family: 'Sora', 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
}

.link-text small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-chevron {
  width: 1.85rem;
  height: 1.85rem;
  color: var(--accent-bright);
  stroke-width: 2;
  transition: transform 200ms ease;
}

.link-card:hover .link-chevron {
  filter: drop-shadow(0 0 0.45rem rgba(238, 248, 255, 0.38));
  transform: translateX(0.2rem);
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.65rem;
}

.social-row a {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #85808b;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.social-row a:hover {
  color: #f1f1f3;
  transform: translateY(-2px);
}

.social-row svg {
  width: 1.5rem;
  height: 1.5rem;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  color: #77777d;
  font-size: 0.96rem;
  line-height: 1.3;
}

.code-mark {
  color: var(--accent);
  font-family: 'Sora', ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  text-shadow: 0 0 0.8rem rgba(235, 247, 255, 0.12);
}

@media (max-height: 950px) and (min-width: 761px) {
  .page {
    padding-top: 1.5rem;
    padding-bottom: 1.25rem;
  }

  .profile-shell {
    --avatar-size: 9.625rem;
  }

  .banner {
    height: 14.5rem;
  }

  .profile-copy {
    padding-top: 0.9rem;
  }

  .profile-copy h1 {
    font-size: 3.75rem;
  }

  .name-rule {
    margin-top: 0.78rem;
    margin-bottom: 0.58rem;
  }

  .role {
    font-size: 1.2rem;
  }

  .bio {
    margin-top: 0.55rem;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .links {
    gap: 0.62rem;
    margin-top: 1rem;
  }

  .link-card {
    min-height: 4.5rem;
  }

  .link-icon {
    width: 3rem;
    height: 3rem;
  }

  .link-icon svg {
    width: 1.55rem;
    height: 1.55rem;
  }

  .social-row {
    margin-top: 1.15rem;
  }

  footer {
    margin-top: 0.7rem;
  }
}

@media (max-height: 820px) and (min-width: 761px) {
  .page {
    padding-top: 1rem;
    padding-bottom: 0.85rem;
  }

  .profile-shell {
    --avatar-size: 8.5rem;
  }

  .banner {
    height: 14.25rem;
  }

  .profile-copy {
    padding-top: 0.65rem;
  }

  .profile-copy h1 {
    font-size: 3.25rem;
  }

  .name-rule {
    width: 2.6rem;
    margin-top: 0.55rem;
    margin-bottom: 0.45rem;
  }

  .role {
    font-size: 1.08rem;
  }

  .bio {
    margin-top: 0.4rem;
    font-size: 0.82rem;
  }

  .links {
    gap: 0.45rem;
    margin-top: 0.72rem;
  }

  .link-card {
    min-height: 3.85rem;
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
  }

  .link-icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .link-text strong {
    font-size: 0.98rem;
  }

  .link-text small {
    font-size: 0.78rem;
  }

  .social-row {
    margin-top: 0.72rem;
  }

  .social-row svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  footer {
    margin-top: 0.45rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 760px) {
  .page {
    padding: 1.1rem 0.75rem 1.75rem;
  }

  .profile-shell {
    --avatar-size: 7.5rem;
  }

  .banner {
    height: clamp(9.75rem, 41vw, 10.25rem);
    border-radius: 0.8rem;
  }

  .banner img {
  filter: grayscale(1) saturate(.08) brightness(.68) contrast(1.08);
    object-position: 58% center;
  }

  .avatar {
    border-width: 2px;
    box-shadow:
      0 0 0 0.32rem var(--background),
      0 0 0 0.38rem rgba(235, 246, 253, 0.05),
      0 1rem 2.75rem rgba(0, 0, 0, 0.65),
      0 0 1.45rem rgba(235, 247, 255, 0.12),
      0 0 2.8rem rgba(210, 231, 244, 0.055);
  }

  .profile-copy {
    padding: 1.15rem 0.5rem 0;
  }

  .profile-copy h1 {
    font-size: clamp(3.15rem, 14vw, 3.65rem);
  }

  .name-rule {
    width: 2.55rem;
    margin-top: 0.85rem;
    margin-bottom: 0.68rem;
  }

  .role {
    font-size: 1.16rem;
  }

  .bio {
    max-width: 23rem;
    margin-top: 0.62rem;
    font-size: 0.87rem;
    line-height: 1.5;
  }

  .bio br {
    display: none;
  }

  .links {
    width: 100%;
    gap: 0.62rem;
    margin-top: 1rem;
  }

  .link-card {
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    gap: 0.8rem;
    min-height: 4.5rem;
    padding: 0.55rem 0.85rem 0.55rem 0.6rem;
    border-radius: 0.75rem;
  }

  .link-icon {
    width: 3rem;
    height: 3rem;
  }

  .link-icon svg {
    width: 1.55rem;
    height: 1.55rem;
  }

  .link-text strong {
    font-size: 0.98rem;
  }

  .link-text small {
    font-size: 0.76rem;
  }

  .link-chevron {
    width: 1.55rem;
    height: 1.55rem;
  }

  .social-row {
    gap: 1.6rem;
    margin-top: 1.35rem;
  }

  footer {
    gap: 0.8rem;
    margin-top: 0.85rem;
    font-size: 0.84rem;
  }

  .background-terrain {
    opacity: 0.72;
  }
}

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

.bio {
  white-space: pre-line;
}

.enter-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  width: 100%;
  padding: 0;
  overflow: hidden;
  place-items: center;
  border: 0;
  background: rgba(3, 3, 4, 0.985);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition:
    opacity 1.08s cubic-bezier(0.22, 0.7, 0.16, 1),
    background-color 1.08s ease,
    backdrop-filter 1.08s ease;
}

.enter-screen::before,
.enter-screen::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
}

.enter-screen::before {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.045), transparent 21rem),
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.14) 0 0.045rem, transparent 0.07rem),
    radial-gradient(circle at 72% 66%, rgba(255, 255, 255, 0.1) 0 0.04rem, transparent 0.065rem);
  background-size: auto, 11rem 13rem, 15rem 12rem;
  opacity: 0.48;
  transform: scale(1.03);
  transition: opacity 900ms ease, transform 1.2s cubic-bezier(0.2, 0.75, 0.18, 1);
}

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

.enter-screen:disabled {
  cursor: wait;
}

.entry-copy {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 12rem;
  place-items: center;
  gap: 1rem;
  opacity: 0.32;
  transform: translateY(0.2rem);
  transition:
    opacity 650ms ease,
    filter 850ms ease,
    transform 850ms cubic-bezier(0.22, 0.7, 0.16, 1);
}

.enter-screen.is-ready .entry-copy {
  opacity: 1;
  animation: entry-copy-breathe 3.4s ease-in-out infinite;
}

.enter-hint {
  color: rgba(225, 225, 229, 0.78);
  font-family: 'Sora', 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.27em;
  text-transform: lowercase;
}

.entry-line {
  display: block;
  width: 2.8rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  opacity: 0.72;
  transform-origin: center;
}

.enter-screen.is-leaving {
  opacity: 0;
  background-color: rgba(3, 3, 4, 0);
  pointer-events: none;
  backdrop-filter: blur(0);
}

.enter-screen.is-leaving::before {
  opacity: 0;
  transform: scale(1.09);
}

.enter-screen.is-leaving .entry-copy {
  opacity: 0;
  filter: blur(0.7rem);
  transform: translateY(-0.2rem) scale(0.965);
  animation: none;
}

.profile-shell {
  will-change: opacity, transform, filter;
  transition:
    opacity 1.05s ease,
    transform 1.16s cubic-bezier(0.18, 0.72, 0.16, 1),
    filter 1.05s ease;
}

.profile-idle {
  opacity: 0;
  filter: blur(0.65rem);
  pointer-events: none;
  transform: translateY(1.3rem) scale(0.978);
}

.profile-entering,
.profile-entered {
  opacity: 1;
  filter: none;
  transform: translateY(0) scale(1);
}

.profile-entering {
  transition-delay: 120ms;
}

.background-terrain {
  opacity: 0.12;
  transform: scale(1.018);
  transform-origin: center bottom;
  transition:
    opacity 1.25s ease,
    transform 1.45s cubic-bezier(0.18, 0.72, 0.16, 1);
}

.page.is-entering .background-terrain,
.page.is-entered .background-terrain {
  opacity: 1;
  transform: scale(1);
}

.music-player {
  position: fixed;
  z-index: 30;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(22rem, calc(100vw - 2rem));
  padding: 0.72rem;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 15% 0%, rgba(242, 249, 255, 0.07), transparent 10rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.052), transparent 48%),
    rgba(8, 9, 12, 0.72);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.09),
    inset 0 0 2.8rem rgba(222, 239, 249, 0.018),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018),
    0 0 0 1px rgba(255, 255, 255, 0.012),
    0 0 2.2rem rgba(222, 239, 250, 0.055),
    0 1.35rem 3.5rem rgba(0, 0, 0, 0.46);
  opacity: 0;
  color: #ececef;
  pointer-events: none;
  transform: translateY(0.8rem) scale(0.98);
  backdrop-filter: blur(1.35rem) saturate(112%);
  -webkit-backdrop-filter: blur(1.35rem) saturate(112%);
  transition:
    width 360ms cubic-bezier(0.2, 0.72, 0.2, 1),
    padding 360ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    opacity 650ms ease 720ms,
    transform 650ms cubic-bezier(0.2, 0.72, 0.2, 1) 720ms;
}

.music-player.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.music-player:hover,
.music-player:focus-within {
  border-color: var(--glass-border-bright);
  background:
    radial-gradient(circle at 15% 0%, rgba(244, 250, 255, 0.095), transparent 11rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 50%),
    rgba(11, 12, 15, 0.82);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 2.8rem rgba(226, 241, 250, 0.025),
    0 0 0 1px rgba(255, 255, 255, 0.018),
    0 0 2.5rem rgba(228, 242, 251, 0.095),
    0 1.5rem 4rem rgba(0, 0, 0, 0.48);
}

.player-summary {
  display: grid;
  grid-template-columns: 2.55rem 1.25rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 0.62rem;
  min-width: 0;
}

.player-play,
.player-collapse,
.player-volume button {
  display: grid;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.035);
  color: #dedee2;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

.player-play {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  background: #e6e6e9;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.56),
    0 0 1rem rgba(235, 247, 255, 0.11);
  color: #111114;
}

.player-play:hover {
  background: #fff;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.8),
    0 0 1.1rem rgba(241, 250, 255, 0.24),
    0 0 2rem rgba(216, 237, 250, 0.1);
  transform: scale(1.035);
}

.player-play:active,
.player-collapse:active,
.player-volume button:active {
  transform: scale(0.965);
}

.player-play svg {
  width: 1.05rem;
  height: 1.05rem;
}

.player-play svg:last-child {
  transform: translateX(0.03rem);
}

.player-collapse,
.player-volume button {
  width: 2rem;
  height: 2rem;
  border-color: transparent;
  border-radius: 0.58rem;
  background: transparent;
  color: #8f8f96;
}

.player-collapse:hover,
.player-volume button:hover {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0.9rem rgba(232, 245, 253, 0.08);
  color: #efeff1;
  filter: drop-shadow(0 0 0.35rem rgba(235, 247, 255, 0.16));
}

.player-collapse svg,
.player-volume button svg {
  width: 1.05rem;
  height: 1.05rem;
}

.player-signal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.13rem;
  width: 1.25rem;
  height: 1.5rem;
  color: #8e8e94;
}

.player-signal i {
  width: 1px;
  height: 0.36rem;
  background: currentColor;
  opacity: 0.7;
  transform-origin: center;
}

.player-signal i:nth-child(2) {
  height: 0.68rem;
}

.player-signal.is-active i {
  animation: player-signal 1.1s ease-in-out infinite alternate;
}

.player-signal.is-active i:nth-child(2) {
  animation-delay: -0.42s;
}

.player-signal.is-active i:nth-child(3) {
  animation-delay: -0.72s;
}

.player-track {
  display: grid;
  min-width: 0;
  gap: 0.16rem;
  text-align: left;
}

.player-track strong,
.player-track small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-track strong {
  color: #ededf0;
  font-family: 'Sora', 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.player-track small {
  color: #74747b;
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.05em;
}

.player-details {
  display: grid;
  max-height: 6.8rem;
  gap: 0.62rem;
  margin-top: 0.72rem;
  overflow: hidden;
  opacity: 1;
  transition:
    max-height 340ms cubic-bezier(0.2, 0.72, 0.2, 1),
    margin 340ms ease,
    opacity 220ms ease 80ms;
}

.music-player.is-minimized {
  width: 12.35rem;
  padding: 0.58rem;
}

.music-player.is-minimized .player-summary {
  grid-template-columns: 2.35rem 1rem minmax(0, 1fr) 1.8rem;
  gap: 0.48rem;
}

.music-player.is-minimized .player-play {
  width: 2.35rem;
  height: 2.35rem;
}

.music-player.is-minimized .player-track small {
  display: none;
}

.music-player.is-minimized .player-details {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
}

.player-timeline {
  display: grid;
  gap: 0.3rem;
  padding: 0 0.2rem;
}

.player-time {
  display: flex;
  justify-content: space-between;
  color: #717178;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.61rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.player-volume {
  display: grid;
  grid-template-columns: 2rem minmax(0, 6rem);
  align-items: center;
  justify-content: end;
  gap: 0.42rem;
}

.player-timeline input,
.player-volume input {
  --range-progress: 0%;
  width: 100%;
  height: 1rem;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0;
  outline: none;
  background: transparent;
  cursor: pointer;
}

.player-timeline input::-webkit-slider-runnable-track,
.player-volume input::-webkit-slider-runnable-track {
  height: 0.16rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, #d8d8dc var(--range-progress), rgba(255, 255, 255, 0.12) var(--range-progress));
}

.player-timeline input::-moz-range-track,
.player-volume input::-moz-range-track {
  height: 0.16rem;
  border: 0;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.12);
}

.player-timeline input::-moz-range-progress,
.player-volume input::-moz-range-progress {
  height: 0.16rem;
  border-radius: 1rem;
  background: #d8d8dc;
}

.player-timeline input::-webkit-slider-thumb,
.player-volume input::-webkit-slider-thumb {
  width: 0.62rem;
  height: 0.62rem;
  margin-top: -0.23rem;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: #f0f0f2;
  box-shadow:
    0 0 0 0.2rem rgba(255, 255, 255, 0.055),
    0 0 0.75rem rgba(235, 247, 255, 0.2);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.player-timeline input::-moz-range-thumb,
.player-volume input::-moz-range-thumb {
  width: 0.62rem;
  height: 0.62rem;
  border: 0;
  border-radius: 50%;
  background: #f0f0f2;
  box-shadow: 0 0 0.75rem rgba(235, 247, 255, 0.2);
  opacity: 0;
}

.music-player:hover input::-webkit-slider-thumb,
.music-player:focus-within input::-webkit-slider-thumb,
.music-player:hover input::-moz-range-thumb,
.music-player:focus-within input::-moz-range-thumb {
  opacity: 1;
}

.player-play:focus-visible,
.player-collapse:focus-visible,
.player-volume button:focus-visible,
.player-timeline input:focus-visible,
.player-volume input:focus-visible,
.enter-screen:focus-visible {
  outline: 2px solid rgba(242, 242, 245, 0.9);
  outline-offset: 0.18rem;
}

@keyframes entry-copy-breathe {
  0%, 100% { opacity: 0.64; }
  46% { opacity: 1; }
  50% { opacity: 0.84; }
  54% { opacity: 1; }
}

@keyframes player-signal {
  from { transform: scaleY(0.48); opacity: 0.48; }
  to { transform: scaleY(1.2); opacity: 0.95; }
}

@media (max-width: 560px) {
  .enter-hint {
    font-size: 0.68rem;
    letter-spacing: 0.24em;
  }

  .music-player {
    right: max(0.65rem, env(safe-area-inset-right));
    bottom: max(0.65rem, env(safe-area-inset-bottom));
    width: calc(100vw - 1.3rem);
    padding: 0.68rem;
    border-radius: 0.9rem;
  }

  .profile-shell::before {
    inset: -0.42rem -0.38rem -0.72rem;
    border-radius: 1.05rem;
    background:
      radial-gradient(circle at 50% 0%, rgba(242, 249, 255, 0.055), transparent 18rem),
      linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 34%),
      rgba(8, 9, 12, 0.38);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.085),
      0 0 2rem rgba(220, 237, 248, 0.05),
      0 2rem 4rem rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(0.85rem) saturate(108%);
    -webkit-backdrop-filter: blur(0.85rem) saturate(108%);
  }

  .music-player.is-minimized {
    width: 5.25rem;
    padding: 0.42rem;
  }

  .player-summary {
    grid-template-columns: 2.5rem 1rem minmax(0, 1fr) 2.25rem;
    gap: 0.55rem;
  }

  .player-play {
    width: 2.5rem;
    height: 2.5rem;
  }

  .music-player.is-minimized .player-summary {
    grid-template-columns: 2.35rem 1.8rem;
    gap: 0.26rem;
  }

  .music-player.is-minimized .player-signal,
  .music-player.is-minimized .player-track {
    display: none;
  }

  .music-player.is-minimized .player-play {
    width: 2.35rem;
    height: 2.35rem;
  }

  .music-player.is-minimized .player-collapse {
    width: 1.8rem;
    height: 2.35rem;
  }

  .player-track strong {
    font-size: 0.76rem;
  }

  .player-details {
    gap: 0.42rem;
    margin-top: 0.42rem;
  }

  .player-timeline {
    padding: 0 0.1rem;
  }

  .player-volume {
    grid-template-columns: 2.35rem minmax(0, 1fr);
    justify-content: stretch;
    gap: 0.65rem;
    width: 100%;
  }

  .player-volume button {
    width: 2.35rem;
    height: 2.35rem;
  }

  .player-timeline input,
  .player-volume input {
    height: 2rem;
    touch-action: none;
  }

  .player-timeline input::-webkit-slider-runnable-track,
  .player-volume input::-webkit-slider-runnable-track,
  .player-timeline input::-moz-range-track,
  .player-volume input::-moz-range-track,
  .player-timeline input::-moz-range-progress,
  .player-volume input::-moz-range-progress {
    height: 0.22rem;
  }

  .player-timeline input::-webkit-slider-thumb,
  .player-volume input::-webkit-slider-thumb {
    width: 0.9rem;
    height: 0.9rem;
    margin-top: -0.34rem;
    opacity: 1;
  }

  .player-timeline input::-moz-range-thumb,
  .player-volume input::-moz-range-thumb {
    width: 0.9rem;
    height: 0.9rem;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-copy,
  .enter-screen.is-ready .entry-copy,
  .player-signal.is-active i {
    animation: none !important;
  }

  .enter-screen,
  .enter-screen::before,
  .entry-copy,
  .profile-shell,
  .background-terrain,
  .music-player,
  .player-details {
    transition: none !important;
  }

  .profile-idle {
    filter: none;
    transform: none;
  }
}
