:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: rgba(25, 25, 28, 0.7);
  --surface-strong: rgba(29, 29, 32, 0.82);
  --surface-soft: rgba(19, 19, 22, 0.58);
  --line: rgba(255, 255, 255, 0.1);
  --line-bright: rgba(255, 255, 255, 0.19);
  --text: #f5f5f6;
  --muted: #9b9ba4;
  --dim: #65656d;
  --green: #2ed39a;
  --max-width: 620px;
  --header-height: 68px;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.video-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #08080a;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: none;
  transform-origin: center;
}

.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.62;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.025);
  background: rgba(10, 10, 12, 0.46);
  backdrop-filter: blur(18px);
  animation: header-reveal 700ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand__signal {
  position: relative;
  width: 0.63rem;
  height: 0.63rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.desktop-nav {
  display: flex;
  gap: 2rem;
}

.desktop-nav a {
  color: #8e8e97;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: #fff;
}

.header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
}

.mini-status,
.online-pill,
.utility-button,
.copy-button {
  border: 1px solid var(--line);
  background: rgba(24, 24, 27, 0.68);
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.24), 0 0 22px rgba(108, 124, 170, 0.05);
  backdrop-filter: blur(16px);
}

.mini-status {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 1.9rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: #aeacb5;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mini-status svg {
  width: 0.9rem;
  height: 0.9rem;
}

.header-avatar {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.1);
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: calc(var(--header-height) + 3.8rem) 1.5rem 7rem;
}

.portal {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1.9rem;
  padding: 0 0.45rem;
  animation: reveal-up 650ms cubic-bezier(0.16, 1, 0.3, 1) 100ms backwards;
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 1.8rem;
  padding: 0 0.78rem;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.online-dot {
  position: relative;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.13), 0 0 12px rgba(255, 255, 255, 0.35);
}

.online-dot::after {
  position: absolute;
  inset: -0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: inherit;
  content: "";
  animation: ping 2s ease-out infinite;
}

.utility-actions {
  display: flex;
  gap: 0.55rem;
}

.utility-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 1.9rem;
  padding: 0 0.78rem;
  border-radius: 999px;
  color: #b9b9c1;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.utility-button:hover {
  border-color: var(--line-bright);
  color: #fff;
  transform: translateY(-1px);
}

.utility-button svg {
  width: 0.95rem;
  height: 0.95rem;
}

.utility-button--icon {
  width: 1.9rem;
  padding: 0;
}

.glass-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(28, 28, 31, 0.78), rgba(17, 17, 20, 0.68));
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42), 0 0 38px rgba(104, 120, 168, 0.07), inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(20px);
}

.profile-column {
  animation: reveal-up 780ms cubic-bezier(0.16, 1, 0.3, 1) 180ms backwards;
}

.profile-card {
  --float-distance: -4px;
  position: relative;
  display: flex;
  min-height: 394px;
  padding: 2.2rem 2rem 1.9rem;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  border-radius: 1.1rem;
  text-align: center;
  animation: float 7s ease-in-out infinite;
}

.profile-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.48), 0 0 48px rgba(112, 132, 190, 0.11), inset 0 1px rgba(255, 255, 255, 0.05);
}

.profile-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  content: "";
}

.profile-card__glow {
  position: absolute;
  top: -8rem;
  left: 50%;
  width: 21rem;
  height: 17rem;
  border-radius: 50%;
  background: rgba(116, 132, 178, 0.13);
  filter: blur(52px);
  transform: translateX(-50%);
}

.avatar-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 1.15rem;
}

.profile-avatar {
  display: block;
  width: 8.2rem;
  height: 8.2rem;
  border: 4px solid #2b2b2f;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.14), 0 14px 30px rgba(0, 0, 0, 0.5);
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 500ms ease;
}

.profile-card:hover .profile-avatar {
  box-shadow: 0 0 38px rgba(255, 255, 255, 0.2), 0 18px 34px rgba(0, 0, 0, 0.54);
  transform: scale(1.035);
}

.avatar-orbit {
  position: absolute;
  inset: -0.45rem;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  animation: spin 16s linear infinite;
}

.verified {
  position: absolute;
  right: 0.05rem;
  bottom: 0.35rem;
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(32, 32, 36, 0.78);
  place-items: center;
  box-shadow: 0 5px 14px #000;
}

.verified svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.5;
}

.profile-card h1 {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0;
  padding: 0.02em 0.12em 0.08em;
  overflow: visible;
  color: transparent;
  background: linear-gradient(180deg, #fff 8%, #d4d4d8 38%, #797981 82%);
  background-clip: text;
  background-size: 100% 220%;
  font-family: "Syne", sans-serif;
  font-size: clamp(3rem, 7vw, 3.75rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.92;
  text-transform: uppercase;
  filter: drop-shadow(0 5px 12px rgba(255, 255, 255, 0.12));
  animation: chrome-shift 5s ease-in-out infinite;
}

.role {
  position: relative;
  z-index: 1;
  margin: 0.75rem 0 0;
  color: #bbb9c1;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.bio-pill {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0.42rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #c6c5cc;
  background: rgba(20, 20, 23, 0.58);
  font-size: 0.74rem;
}

.bio-pill svg {
  width: 0.95rem;
  height: 0.95rem;
}

.coordinates {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.67rem;
  margin-top: 1.25rem;
  color: #71717a;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.coordinates svg {
  width: 0.8rem;
  height: 0.8rem;
}

.coordinates i {
  font-style: normal;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.stat-card {
  display: flex;
  min-height: 116px;
  padding: 1rem 0.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  text-align: center;
  transition: border-color 280ms ease, box-shadow 280ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:nth-child(1) { --float-distance: -2.5px; animation: reveal-scale 620ms cubic-bezier(0.16, 1, 0.3, 1) 340ms backwards, float 6.8s ease-in-out -1.2s infinite; }
.stat-card:nth-child(2) { --float-distance: -3px; animation: reveal-scale 620ms cubic-bezier(0.16, 1, 0.3, 1) 420ms backwards, float 7.4s ease-in-out -3.8s infinite; }
.stat-card:nth-child(3) { --float-distance: -2.5px; animation: reveal-scale 620ms cubic-bezier(0.16, 1, 0.3, 1) 500ms backwards, float 6.5s ease-in-out -2.4s infinite; }

.stat-card:hover {
  border-color: var(--line-bright);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.44), 0 0 32px rgba(126, 144, 204, 0.12);
  transform: translateY(-3px);
}

.stat-card svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-bottom: 0.52rem;
  color: #b5b5bc;
  transition: color 280ms ease, transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover svg {
  color: #fff;
  transform: translateY(-2px) scale(1.08);
}

.stat-card strong {
  font-family: "Syne", sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-card span {
  margin-top: 0.35rem;
  color: #a3a3aa;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.link-list {
  display: grid;
  gap: 0.72rem;
  margin-top: 1.6rem;
}

.link-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 88px;
  padding: 0.9rem 1rem;
  align-items: center;
  gap: 1rem;
  border-radius: 0.8rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 280ms ease, background 280ms ease, box-shadow 280ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.link-card:nth-child(1) { --float-distance: -3px; animation: reveal-up 680ms cubic-bezier(0.16, 1, 0.3, 1) 280ms backwards, float 7.2s ease-in-out -2s infinite; }
.link-card:nth-child(2) { --float-distance: -3px; animation: reveal-up 680ms cubic-bezier(0.16, 1, 0.3, 1) 380ms backwards, float 8s ease-in-out -5s infinite; }
.link-card:nth-child(3) { --float-distance: -3px; animation: reveal-up 680ms cubic-bezier(0.16, 1, 0.3, 1) 480ms backwards, float 7.6s ease-in-out -3.5s infinite; }

.link-card:hover {
  border-color: var(--line-bright);
  background: linear-gradient(145deg, rgba(36, 36, 40, 0.84), rgba(21, 21, 24, 0.74));
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.48), 0 0 42px rgba(126, 142, 188, 0.1);
  transform: translateY(-2px);
}

.link-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.72rem;
  background: rgba(39, 39, 43, 0.72);
  place-items: center;
  transition: background 300ms ease, border-color 300ms ease, transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.link-card:hover .link-icon {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(49, 49, 55, 0.78);
  transform: scale(1.06) rotate(-2deg);
}

.link-icon svg,
.link-icon img {
  width: 1.32rem;
  height: 1.32rem;
}

.link-icon img {
  display: block;
  object-fit: contain;
}

.link-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.link-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 700;
}

.link-title small,
.playing-badge {
  padding: 0.17rem 0.44rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.3rem;
  color: #c8c8ce;
  background: rgba(59, 59, 64, 0.72);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.link-title small.new {
  border-color: rgba(46, 211, 154, 0.22);
  color: var(--green);
  background: rgba(46, 211, 154, 0.1);
}

.link-description {
  margin-top: 0.2rem;
  overflow: hidden;
  color: #a5a5ad;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-arrow {
  width: 1.12rem;
  height: 1.12rem;
  color: #919199;
  transition: color 180ms ease, transform 180ms ease;
}

.link-card:hover .link-arrow {
  color: #fff;
  transform: translateX(3px);
}

.player {
  --float-distance: -3px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  min-height: 82px;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  align-items: center;
  gap: 0.8rem;
  border-radius: 0.8rem;
  animation: reveal-up 680ms cubic-bezier(0.16, 1, 0.3, 1) 580ms backwards, float 7.8s ease-in-out -4.4s infinite;
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.player:hover,
.player.is-playing {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.46), 0 0 38px rgba(126, 144, 204, 0.11);
}

.player-toggle {
  position: relative;
  width: 3rem;
  height: 3rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.72);
  cursor: pointer;
}

.player-toggle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.player-toggle:hover img {
  transform: scale(1.1);
}

.player.is-playing .player-toggle img {
  animation: cover-spin 12s linear infinite;
}

.player-toggle__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  color: #fff;
  background: rgba(0, 0, 0, 0.24);
  place-items: center;
}

.player-toggle__overlay svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  stroke-width: 0;
}

.pause-icon,
.is-playing .play-icon {
  display: none;
}

.is-playing .pause-icon {
  display: block;
}

.track-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  font-family: "JetBrains Mono", monospace;
}

.track-copy strong {
  overflow: hidden;
  font-size: 0.65rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.track-copy span {
  margin-top: 0.18rem;
  overflow: hidden;
  color: #84848d;
  font-size: 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playing-badge {
  visibility: hidden;
}

.player.is-playing .playing-badge {
  visibility: visible;
}

.equalizer {
  display: flex;
  height: 1.55rem;
  align-items: flex-end;
  gap: 0.2rem;
}

.equalizer i {
  width: 0.2rem;
  height: 0.28rem;
  border-radius: 99px;
  background: #bebec5;
}

.is-playing .equalizer i:nth-child(1) { animation: equalize 0.8s ease-in-out infinite; }
.is-playing .equalizer i:nth-child(2) { animation: equalize 0.62s ease-in-out 80ms infinite; }
.is-playing .equalizer i:nth-child(3) { animation: equalize 0.9s ease-in-out 140ms infinite; }
.is-playing .equalizer i:nth-child(4) { animation: equalize 0.7s ease-in-out 30ms infinite; }
.is-playing .equalizer i:nth-child(5) { animation: equalize 0.82s ease-in-out 190ms infinite; }

.portal-footer {
  display: flex;
  margin-top: 2.2rem;
  flex-direction: column;
  align-items: center;
  animation: reveal-up 650ms cubic-bezier(0.16, 1, 0.3, 1) 680ms backwards;
}

.copy-button {
  display: inline-flex;
  min-height: 2.25rem;
  padding: 0 1.05rem;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  color: #d0d0d5;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.63rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.copy-button:hover {
  border-color: var(--line-bright);
  color: #fff;
  transform: translateY(-1px);
}

.copy-button svg {
  width: 0.92rem;
  height: 0.92rem;
}

.copy-button.is-success {
  border-color: rgba(46, 211, 154, 0.45);
  color: var(--green);
}

.profile-card h1,
.role,
.bio-pill,
.coordinates,
.stat-card strong,
.stat-card span,
.link-title,
.link-description,
.track-copy strong,
.track-copy span,
.copy-button {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.16), 0 0 18px rgba(126, 144, 204, 0.08);
}

.verified svg,
.bio-pill svg,
.coordinates svg,
.stat-card svg,
.link-icon svg,
.link-icon img,
.link-arrow,
.player-toggle__overlay svg,
.copy-button svg {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.22)) drop-shadow(0 0 12px rgba(126, 144, 204, 0.1));
}

.equalizer i {
  box-shadow: 0 0 7px rgba(255, 255, 255, 0.24), 0 0 14px rgba(126, 144, 204, 0.1);
}

.portal-footer p {
  margin: 1.2rem 0 0;
  color: #686871;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  padding: 2.1rem clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.025);
  color: #85858d;
  font-size: 0.69rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  animation: reveal-up 650ms cubic-bezier(0.16, 1, 0.3, 1) 760ms backwards;
}

.site-footer p {
  margin: 0;
}

.site-footer strong {
  color: #ededf0;
  font-size: 0.95rem;
}

.site-footer span {
  margin-left: 0.35rem;
  color: #53535a;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-bright);
  border-radius: 0.65rem;
  color: #eee;
  background: rgba(24, 24, 27, 0.82);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.7rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes header-reveal {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(24px) scale(0.985);
  }
}

@keyframes reveal-scale {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(16px) scale(0.94);
  }
}

@keyframes chrome-shift {
  0%, 100% { background-position: 50% 0%; }
  50% { background-position: 50% 100%; }
}

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

@keyframes float {
  50% { translate: 0 var(--float-distance, -3px); }
}

@keyframes breathe {
  50% { opacity: 0.6; transform: translate(-50%, 0.4rem) scale(1.08); }
}

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

@keyframes ping {
  80%, 100% { opacity: 0; transform: scale(1.7); }
}

@keyframes equalize {
  50% { height: 1.45rem; }
}

@media (min-width: 1024px) {
  :root {
    --header-height: 64px;
    --max-width: 1280px;
  }

  .page-shell {
    min-height: calc(100vh - 112px);
    padding: calc(var(--header-height) + 3.5rem) 1.5rem 7rem;
  }

  .utility-bar {
    margin-bottom: 1.5rem;
    padding-inline: 0.5rem;
  }

  .desktop-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: stretch;
    gap: 1.5rem;
  }

  .profile-column,
  .content-column {
    min-width: 0;
  }

  .content-column {
    display: flex;
    flex-direction: column;
  }

  .profile-card {
    min-height: 394px;
    padding: 1.5rem 2rem 2rem;
    justify-content: center;
  }

  .profile-avatar {
    width: 8rem;
    height: 8rem;
  }

  .avatar-wrap {
    margin-bottom: 1.25rem;
  }

  .profile-card h1 {
    font-size: 3.5rem;
  }

  .role {
    margin-top: 0.3rem;
    font-size: 0.78rem;
  }

  .bio-pill {
    margin-top: 1rem;
    padding: 0.42rem 1rem;
    font-size: 0.74rem;
  }

  .coordinates {
    margin-top: 1.25rem;
    font-size: 0.57rem;
  }

  .stats {
    gap: 0.85rem;
    margin-top: 1.25rem;
  }

  .stat-card {
    min-height: 114px;
  }

  .stat-card svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .stat-card strong {
    font-size: 1.45rem;
  }

  .stat-card span {
    font-size: 0.6rem;
  }

  .link-list {
    gap: 0.875rem;
    margin-top: 0;
  }

  .link-card {
    min-height: 90px;
    padding: 1rem 1.25rem;
    gap: 1rem;
    border-radius: 0.75rem;
  }

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

  .link-icon svg,
  .link-icon img {
    width: 1.5rem;
    height: 1.5rem;
  }

  .link-title {
    font-size: 1.25rem;
  }

  .link-description {
    margin-top: 0.18rem;
    font-size: 0.8rem;
  }

  .link-arrow {
    width: 1.25rem;
    height: 1.25rem;
  }

  .player {
    min-height: 80px;
    margin-top: 0.875rem;
    padding: 0.75rem 1rem;
    gap: 0.8rem;
    border-radius: 0.75rem;
  }

  .player-toggle {
    width: 3rem;
    height: 3rem;
  }

  .track-copy strong {
    font-size: 0.65rem;
  }

  .track-copy span {
    font-size: 0.55rem;
  }

  .portal-footer {
    display: flex;
    margin-top: auto;
    padding: 1.35rem 0.25rem 0;
    flex-direction: row;
    justify-content: space-between;
  }

  .portal-footer p {
    margin: 0;
    font-size: 0.57rem;
  }

  .copy-button {
    min-height: 2.25rem;
    padding-inline: 1.25rem;
    font-size: 0.63rem;
  }

  .site-footer {
    min-height: 112px;
  }
}

@media (max-width: 767px) {
  :root {
    --max-width: 430px;
  }

  .site-header {
    display: none;
  }

  .page-shell {
    padding: 1.5rem 0.75rem 2.4rem;
  }

  .utility-bar {
    margin-bottom: 1.35rem;
    padding: 0 0.5rem;
  }

  .sound-label {
    display: none;
  }

  .sound-button {
    width: 1.95rem;
    padding: 0;
  }

  .profile-card {
    min-height: 0;
    padding: 1.6rem 1rem 1.5rem;
    border-radius: 1.4rem;
  }

  .profile-avatar {
    width: 7rem;
    height: 7rem;
  }

  .profile-card h1 {
    font-size: clamp(2.75rem, 14vw, 3.4rem);
  }

  .role {
    font-size: 0.62rem;
  }

  .bio-pill {
    max-width: 100%;
    padding-inline: 0.72rem;
    font-size: 0.65rem;
  }

  .bio-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .coordinates {
    gap: 0.42rem;
    font-size: 0.49rem;
    letter-spacing: 0.075em;
  }

  .stats {
    gap: 0.6rem;
    margin-top: 0.72rem;
  }

  .stat-card {
    min-height: 96px;
    padding: 0.8rem 0.35rem;
    border-radius: 1rem;
  }

  .stat-card strong {
    font-size: 1.15rem;
  }

  .stat-card span {
    font-size: 0.5rem;
  }

  .link-list {
    gap: 0.62rem;
    margin-top: 1.3rem;
  }

  .link-card {
    min-height: 74px;
    padding: 0.72rem 0.86rem;
    gap: 0.8rem;
    border-radius: 1rem;
  }

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

  .link-title {
    gap: 0.42rem;
    font-size: 0.86rem;
  }

  .link-description {
    font-size: 0.67rem;
  }

  .player {
    grid-template-columns: auto 1fr auto;
    min-height: 76px;
    margin-top: 1.15rem;
    padding: 0.72rem 0.86rem;
    border-radius: 1rem;
  }

  .playing-badge {
    display: none;
  }

  .track-copy strong {
    font-size: 0.58rem;
  }

  .track-copy span {
    font-size: 0.49rem;
  }

  .portal-footer {
    margin-top: 1.9rem;
  }

  .copy-button {
    width: 100%;
    min-height: 2.65rem;
    justify-content: center;
    border-radius: 0.78rem;
  }

  .portal-footer p {
    font-size: 0.5rem;
  }

  .site-footer {
    margin: 0 0.75rem;
    padding: 1.1rem 0.45rem 1.8rem;
    gap: 0.7rem;
    border-top-color: rgba(255, 255, 255, 0.07);
    font-size: 0.45rem;
  }

  .site-footer strong {
    font-size: 0.56rem;
  }

  .site-footer span {
    font-size: 0.43rem;
  }
}

@media (max-width: 370px) {
  .coordinates i:nth-of-type(2),
  .coordinates span:last-child {
    display: none;
  }

  .link-description {
    max-width: 190px;
  }

  .equalizer i:nth-child(n + 5) {
    display: none;
  }
}

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