:root {
  color-scheme: dark;
  --bg: #040408;
  --panel: rgba(14, 14, 21, .82);
  --line: rgba(139, 92, 246, .32);
  --muted: #9a97a6;
  --text: #f6f4fb;
  --purple: #9560ff;
  --cyan: #03cbed;
  --green: #22d77c;
  --pink: #f05aaa;
  --red: #ff5d72;
  --orange: #ff9f43;
  font-family: Manrope, sans-serif;
}

* { box-sizing: border-box; cursor: url("assets/cursor-dot.svg?v=1") 20 20, auto; }
html, body { min-height: 100%; margin: 0; }
body {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(120, 60, 255, .22), transparent 70%),
    radial-gradient(45% 40% at 85% 100%, rgba(3, 203, 237, .12), transparent 70%),
    radial-gradient(45% 40% at 10% 90%, rgba(240, 90, 170, .1), transparent 70%);
  animation: aurora 14s ease-in-out infinite alternate;
}
body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .65) 100%);
}
@keyframes aurora { from { opacity: .7; transform: scale(1); } to { opacity: 1; transform: scale(1.06); } }

button { color: inherit; font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
::selection { background: rgba(149, 96, 255, .4); color: #fff; }
html { scrollbar-width: thin; scrollbar-color: #3a2b66 transparent; }

#particle-canvas { position: fixed; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Gradiente radial em vez de filter: blur(110px): o mesmo brilho difuso, sem o custo de desfocar um elemento enorme. */
.ambient { position: fixed; z-index: 0; width: 55vw; height: 55vw; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent 100%); opacity: .2; pointer-events: none; }
.ambient-one { --c: #7528d7; top: -20%; left: -18%; }
.ambient-two { --c: #00a7b8; right: -22%; bottom: -25%; opacity: .14; }

/* ---------- Cursor personalizado ---------- */
/* O cursor é nativo (SVG): é desenhado pelo sistema e nunca fica atrás do rato. */
a[href], a[href] *, button, button *, input, label, label * { cursor: url("assets/cursor-dot-hover.svg?v=1") 20 20, pointer; }
[aria-disabled="true"], [aria-disabled="true"] *, a[href][aria-disabled="true"], a[href][aria-disabled="true"] *, .link-card.disabled, .link-card.disabled * { cursor: url("assets/cursor-dot-disabled.svg?v=1") 20 20, not-allowed; }

/* ---------- Ecrã de entrada ---------- */
.entry-screen {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-content: center;
  cursor: pointer;
  background: rgba(4, 4, 8, .72);
  backdrop-filter: blur(14px);
  transition: opacity .9s ease, visibility .9s ease;
}
.entry-screen, .entry-screen * { cursor: url("assets/cursor-dot-hover.svg?v=1") 20 20, pointer; }
.entry-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.entry-label {
  margin: 0;
  color: #cbb8ff;
  font-family: "DM Mono", monospace;
  font-size: clamp(.8rem, 1.6vw, 1rem);
  letter-spacing: .3em;
  text-align: center;
  text-shadow: 0 0 18px rgba(149, 96, 255, .75);
  animation: breathe 2.5s ease-in-out infinite;
}
.entry-hint { display: block; margin-top: 1.3rem; color: #8a86a0; font: .75rem "DM Mono", monospace; letter-spacing: .2em; text-align: center; }
@keyframes breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.entry-screen::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(149, 96, 255, .16), transparent 42%);
  animation: breathe 4s ease-in-out infinite;
}
.entry-label { transition: letter-spacing .5s cubic-bezier(.2, .8, .2, 1), color .3s ease, text-shadow .3s ease; }
.entry-screen:hover .entry-label, .entry-screen:focus-visible .entry-label {
  color: #e6dcff;
  letter-spacing: .38em;
  text-shadow: 0 0 26px rgba(149, 96, 255, .95), 0 0 50px rgba(3, 203, 237, .35);
}
.entry-screen:focus-visible { outline-offset: -10px; }

/* ---------- Estrutura ---------- */
.profile-shell {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100% - 2rem));
  margin: 2rem 0;
  opacity: 0;
  transition: opacity .9s ease .2s;
}
.profile-shell.is-visible { opacity: 1; }
/* A animação vai no cartão e não no .profile-shell: um transform no shell fazia os controlos fixos saltarem no fim da entrada. */
.profile-card { transform: translateY(24px) scale(.97); transition: transform .9s cubic-bezier(.2, .8, .2, 1) .2s; }
.profile-shell.is-visible .profile-card { transform: none; }

/* ---------- Som e player ---------- */
.volume-control {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 8px;
}
.sound-button {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: rgba(16, 13, 28, .6);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(14px);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  touch-action: manipulation;
}
.sound-button:focus-visible {
  border-color: var(--purple);
  box-shadow: 0 0 26px rgba(149, 96, 255, .4);
  transform: scale(1.06);
}
@media (hover: hover) {
  .sound-button:hover {
    border-color: var(--purple);
    box-shadow: 0 0 26px rgba(149, 96, 255, .4);
    transform: scale(1.06);
  }
}
.sound-button:active { transform: scale(.94); }
.volume-popover {
  position: absolute;
  top: 60px;
  left: 8px;
  display: grid;
  gap: .45rem;
  width: 160px;
  padding: .75rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(16, 13, 28, .8);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
}
.sound-button:hover ~ .volume-popover,
.volume-popover:hover,
.volume-control.is-open .volume-popover,
.volume-popover:focus-within { opacity: 1; pointer-events: auto; transform: none; }
.volume-popover::before { content: ""; position: absolute; top: -12px; right: 0; left: 0; height: 12px; }
.volume-popover label { color: var(--muted); font: .7rem "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
#volume-slider { width: 100%; min-height: 28px; accent-color: var(--purple); touch-action: pan-y; }
.icon { width: 18px; fill: none; stroke: #c9b5ff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.icon-muted { display: none; }
.sound-button.is-muted .icon-sound { display: none; }
.sound-button.is-muted .icon-muted { display: block; }

.music-player {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: .6rem;
  align-items: center;
  position: relative;
  width: clamp(210px, 26vw, 270px);
  height: 44px;
  margin: 0;
  padding: 0 .45rem 0 .5rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  background: rgba(16, 13, 28, .6);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(14px);
}
.track-art {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(140deg, #9b4cf4, #ed3478);
  box-shadow: 0 6px 18px rgba(220, 57, 150, .25);
  animation: music-float 2.2s ease-in-out infinite;
}
.track-art svg { width: 16px; fill: none; stroke: white; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; animation: music-note 1.5s ease-in-out infinite; }
@keyframes music-float { 50% { transform: translateY(-3px) rotate(-2deg); box-shadow: 0 10px 25px rgba(220, 57, 150, .4); } }
@keyframes music-note { 50% { transform: scale(1.12) rotate(5deg); } }
.track-info { min-width: 0; line-height: 1.2; }
.track-info strong, .track-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-info strong { font-size: .74rem; }
.track-info span { margin-top: .2rem; color: #aaa6b5; font-size: .68rem; }
.player-controls { display: flex; align-items: center; }
.player-controls button { padding: 0; border: 0; background: none; color: var(--purple); font-size: .66rem; }
.player-controls .play-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9c57ff, #6a35de);
  color: white;
  box-shadow: 0 0 13px rgba(139, 73, 255, .5);
  animation: play-glow 2s ease-in-out infinite;
  transition: transform .2s ease;
}
@media (hover: hover) { .player-controls .play-button:hover { transform: scale(1.1); } }
.player-controls .play-button:active { transform: scale(.92); }
@keyframes play-glow { 50% { box-shadow: 0 0 22px rgba(139, 73, 255, .85); } }
/* Ícones play/pausa em SVG (mask): os glifos ▶/Ⅱ mudavam de fonte e tamanho entre sistemas. */
.play-button::before { width: 12px; height: 12px; background: currentColor; content: ""; -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; --glyph: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 12%27%3E%3Cpath d=%27M3 1.5v9l7.5-4.5z%27/%3E%3C/svg%3E"); }
.music-player.is-playing .play-button::before { --glyph: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 12%27%3E%3Cpath d=%27M2.5 1.5h2.5v9H2.5zM7 1.5h2.5v9H7z%27/%3E%3C/svg%3E"); }
/* As animações do player só correm enquanto a música toca. */
.music-player:not(.is-playing) .track-art,
.music-player:not(.is-playing) .track-art svg,
.music-player:not(.is-playing) .play-button { animation-play-state: paused; }

/* Barra de progresso apenas visual (sem interação) por baixo do título. */
.seek {
  position: absolute;
  right: 46px;
  bottom: 3px;
  left: 46px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .1);
  pointer-events: none;
}
.seek-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

/* Aviso rápido (ex.: link copiado). */
.toast {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 20;
  max-width: calc(100% - 2rem);
  padding: .6rem 1rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 99px;
  background: rgba(16, 13, 28, .92);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
  color: var(--text);
  font: .75rem "DM Mono", monospace;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Cartão de perfil ---------- */
.profile-card {
  position: relative;
  overflow: hidden;
  padding: 2.6rem 1.6rem 1.6rem;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(26, 20, 44, .55), rgba(9, 9, 16, .5));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 60px rgba(120, 70, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(22px) saturate(140%);
}
.profile-card::before {
  position: absolute;
  top: -140px;
  left: 50%;
  width: 340px;
  height: 260px;
  margin-left: -170px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(134, 79, 247, .32), transparent);
  content: "";
  pointer-events: none;
}
.profile-card::after {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(170, 98, 255, .75), rgba(255, 255, 255, .05) 35%, rgba(255, 255, 255, .05) 65%, rgba(3, 203, 237, .6));
  content: "";
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.profile-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 2rem;
  text-align: center;
}
.avatar {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 108px;
  height: 108px;
  border: 4px solid #0a0812;
  border-radius: 50%;
  background: linear-gradient(#1d1437, #160d2c);
  background-color: #160d2c;
  color: #ba9aff;
  font-size: 2.6rem;
  font-weight: 800;
  box-shadow: 0 0 40px rgba(125, 63, 255, .35), 0 0 90px rgba(3, 203, 237, .12);
}
.avatar::before {
  position: absolute;
  inset: -12px;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #aa62ff, #f12d68, #02cfe9, #aa62ff);
  content: "";
  animation: ring-spin 6s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
.avatar.has-image { background-size: cover; background-position: center; background-repeat: no-repeat; color: transparent; }

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

.name-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .55rem; }
h1 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(120deg, #ffffff 20%, #cdb6ff 60%, #8fe9f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(149, 96, 255, .55));
}
.profile-copy > p { margin: .55rem 0 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
@keyframes online-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 215, 124, .7); }
  70% { box-shadow: 0 0 0 7px rgba(34, 215, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 215, 124, 0); }
}

/* ---------- Links ---------- */
.links-list { position: relative; display: grid; gap: .75rem; }
.link-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 48px 1fr 28px;
  gap: .9rem;
  align-items: center;
  min-height: 92px;
  padding: .95rem 1rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  text-decoration: none;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.link-card::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 260px at var(--mx, 15%) var(--my, 20%), color-mix(in srgb, var(--accent), transparent 76%), transparent 70%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.link-card::after {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .1), transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-18deg);
}
.link-card > * { position: relative; }
/* Entrada em sequência dos cartões (fill-mode "backwards" para não bloquear o hover). */
.profile-shell.is-visible .link-card {
  animation: card-in .7s cubic-bezier(.2, .8, .2, 1) backwards;
  animation-delay: calc(.55s + var(--i, 0) * 90ms);
}
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.links-empty {
  margin: 0;
  padding: 1.2rem;
  border: 1px dashed rgba(255, 255, 255, .14);
  border-radius: 16px;
  color: var(--muted);
  font: .78rem "DM Mono", monospace;
  line-height: 1.5;
  text-align: center;
}
/* Hover só em dispositivos com rato: no telemóvel o toque deixava o cartão "preso" no estado hover. */
.link-card:not(.disabled):focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent), transparent 35%);
  box-shadow: 0 14px 38px color-mix(in srgb, var(--accent), transparent 78%), 0 0 0 1px color-mix(in srgb, var(--accent), transparent 70%);
  outline-color: var(--accent);
}
.link-card:not(.disabled):focus-visible::before { opacity: 1; }
@media (hover: hover) {
  .link-card:not(.disabled):hover {
    transform: perspective(800px) translateY(-4px) scale(1.012) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    border-color: color-mix(in srgb, var(--accent), transparent 35%);
    box-shadow: 0 14px 38px color-mix(in srgb, var(--accent), transparent 78%), 0 0 0 1px color-mix(in srgb, var(--accent), transparent 70%);
  }
  .link-card:not(.disabled):hover::before { opacity: 1; }
  .link-card:not(.disabled):hover::after { left: 130%; transition: left .8s ease; }
  .link-card:not(.disabled):hover .link-icon { transform: translateY(-2px) scale(1.06); box-shadow: 0 0 26px color-mix(in srgb, var(--accent), transparent 60%); }
  .link-card:not(.disabled):hover .arrow { transform: translateX(4px); background: color-mix(in srgb, var(--accent), transparent 80%); }
}
.link-card:not(.disabled):active { transform: scale(.985); transition-duration: .1s; }
.link-card.disabled { opacity: .55; cursor: not-allowed; border-style: dashed; background: rgba(255, 255, 255, .02); }
.link-card.disabled .link-icon { filter: grayscale(.7); }
.link-icon {
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 55%);
  border-radius: 15px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent), transparent 88%);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent), transparent 82%);
}
.link-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.link-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .65rem; margin-bottom: .3rem; }
.link-title strong { font-size: .92rem; letter-spacing: -.01em; }
.domain { flex-basis: 100%; color: #9d99ad; font: .72rem "DM Mono", monospace; }
.link-description { display: block; margin: 0; color: #b0acbd; font-size: .85rem; line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.tag {
  padding: .2rem .55rem;
  border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 78%);
  background: color-mix(in srgb, var(--accent), transparent 88%);
  color: color-mix(in srgb, var(--accent), white 30%); /* mais contraste no fundo escuro */
  font: .7rem "DM Mono", monospace;
  letter-spacing: .04em;
}
/* "NOVO" destaca-se a verde em qualquer cartão; as outras tags usam a cor do cartão. */
.tag.is-new { --accent: var(--green); position: relative; padding-left: 1.25rem; }
.tag.is-new::before { position: absolute; top: 50%; left: .5rem; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--green); content: ""; animation: online-pulse 1.8s ease-out infinite; }
.arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -6px;
  border-radius: 50%;
  color: var(--accent);
  transition: transform .3s ease, background .3s ease;
}
/* Chevron e relógio em SVG (mask) em vez dos glifos › e ◷. */
.arrow::before { width: 16px; height: 16px; background: currentColor; content: ""; -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; --glyph: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m9 6 6 6-6 6%27/%3E%3C/svg%3E"); }
.link-card.disabled .arrow::before { --glyph: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.8%27 stroke-linecap=%27round%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%278%27/%3E%3Cpath d=%27M12 8v4l2.5 1.5%27/%3E%3C/svg%3E"); }

/* ---------- Redes sociais (só as ligadas no editor) ---------- */
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.7rem; }
.socials[hidden] { display: none; }
.social {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  background: rgba(255, 255, 255, .03);
  color: #c9b5ff;
  transition: color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.social svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.social:focus-visible { color: #fff; border-color: var(--purple); }
@media (hover: hover) {
  .social:hover { color: #fff; border-color: var(--purple); box-shadow: 0 0 18px rgba(149, 96, 255, .45); transform: translateY(-2px); }
}
.social:active { transform: scale(.94); }
.socials:not([hidden]) + footer { margin-top: 1.3rem; }

footer {
  margin-top: 1.9rem;
  padding-top: 1.2rem;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(149, 96, 255, .35), rgba(3, 203, 237, .25), transparent) 1;
  color: #8c88a0;
  font: .75rem "DM Mono", monospace;
  letter-spacing: .03em;
  text-align: center;
}

/* ---------- Responsivo ---------- */
@media (max-width: 540px) {
  .profile-shell { width: min(460px, calc(100% - 1rem)); margin: 1rem 0; }
  .profile-card { padding: 5rem 1rem 1.3rem; border-radius: 24px; }
  .profile-header { margin-bottom: 1.6rem; }
  .avatar { width: 96px; height: 96px; font-size: 2.3rem; }
  h1 { font-size: 1.5rem; }
  .volume-control { position: absolute; top: .7rem; right: .7rem; left: .7rem; padding: 0; gap: .5rem; }
  .volume-popover { top: 52px; left: 0; }
  .link-card { min-height: 88px; padding: .8rem; gap: .7rem; }
  .music-player { width: auto; flex: 1; min-width: 0; }
  .player-controls .play-button { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}