:root {
  --bg: #030306;
  --card: rgba(8, 8, 14, 0.82);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #f8f8fc;
  --text-muted: rgba(248, 248, 252, 0.5);
  --accent: #e2e8f0;
  --accent-2: #22d3ee;
  --accent-3: #94a3b8;
  --accent-glow: rgba(34, 211, 238, 0.35);
  --radius: 22px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Syne", var(--font);
  --mono: "JetBrains Mono", monospace;
  --card-max: 500px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --dur: 0.55s;
  --dur-fast: 0.28s;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 32px color-mix(in srgb, var(--accent-2) 22%, transparent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: color-mix(in srgb, var(--accent-2) 35%, transparent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent-2) 70%, transparent);
  outline-offset: 3px;
}

/* ── Background ── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  z-index: 0;
}

.bg-photo img {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
}

.bg-photo-blur {
  filter: blur(32px) brightness(0.42) saturate(1.25) contrast(1.08);
  transform: scale(1.1) translateZ(0);
  animation: kenburns 48s var(--ease-soft) infinite alternate;
  will-change: transform;
}

.bg-photo-sharp {
  opacity: 0.34;
  filter: brightness(0.52) contrast(1.12) saturate(1.08);
  mask-image: radial-gradient(ellipse 88% 78% at 50% 38%, black 18%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 88% 78% at 50% 38%, black 18%, transparent 80%);
  transform: scale(1.08) translateZ(0);
  animation: kenburns 48s var(--ease-soft) infinite alternate-reverse;
  will-change: transform;
}

@keyframes kenburns {
  0% { transform: scale(1.1) translate(0, 0); }
  100% { transform: scale(1.18) translate(-1%, -0.8%); }
}

/* ── Aurora ── */
.bg-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
  transition: opacity 1.2s var(--ease);
}

body.bg-music-active .bg-aurora {
  opacity: 0.95;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  animation: aurora-drift 22s var(--ease-soft) infinite alternate;
}

.aurora-1 {
  width: 55vw;
  height: 55vw;
  top: -15%;
  left: -10%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 70%);
}

.aurora-2 {
  width: 45vw;
  height: 45vw;
  bottom: -10%;
  right: -5%;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.16), transparent 70%);
  animation-delay: -7s;
  animation-duration: 26s;
}

.aurora-3 {
  width: 35vw;
  height: 35vw;
  top: 40%;
  left: 35%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.1), transparent 65%);
  animation-delay: -12s;
  animation-duration: 20s;
}

@keyframes aurora-drift {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { transform: translate(4%, -3%) scale(1.12) rotate(8deg); }
}

.bg-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: orb-float 18s var(--ease-soft) infinite;
}

.orb-1 {
  width: 320px;
  height: 320px;
  top: 15%;
  left: 20%;
  background: rgba(34, 211, 238, 0.2);
}

.orb-2 {
  width: 260px;
  height: 260px;
  bottom: 20%;
  right: 15%;
  background: rgba(148, 163, 184, 0.15);
  animation-delay: -5s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  top: 55%;
  left: 55%;
  background: rgba(34, 211, 238, 0.12);
  animation-delay: -9s;
}

.orb-4 {
  width: 180px;
  height: 180px;
  top: 8%;
  right: 22%;
  background: rgba(226, 232, 240, 0.08);
  animation-delay: -14s;
  animation-duration: 22s;
}

/* ── Light beams ── */
.bg-beams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
  opacity: 0.35;
}

.beam {
  position: absolute;
  width: 2px;
  height: 140%;
  top: -20%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(34, 211, 238, 0.35) 35%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 70%
  );
  transform-origin: top center;
  animation: beam-sway 12s var(--ease-soft) infinite alternate;
}

.beam-1 {
  left: 18%;
  transform: rotate(-18deg);
}

.beam-2 {
  left: 52%;
  transform: rotate(8deg);
  animation-delay: -4s;
  opacity: 0.7;
}

.beam-3 {
  right: 14%;
  transform: rotate(22deg);
  animation-delay: -8s;
}

@keyframes beam-sway {
  0% { opacity: 0.25; transform: rotate(var(--beam-rot, -18deg)) translateX(0); }
  100% { opacity: 0.55; transform: rotate(calc(var(--beam-rot, -18deg) + 4deg)) translateX(12px); }
}

.beam-1 { --beam-rot: -18deg; }
.beam-2 { --beam-rot: 8deg; }
.beam-3 { --beam-rot: 22deg; }

/* ── Perspective grid floor ── */
.bg-grid-floor {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -5%;
  height: 55%;
  pointer-events: none;
  z-index: 4;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(34, 211, 238, 0.06) 0,
      rgba(34, 211, 238, 0.06) 1px,
      transparent 1px,
      transparent 56px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(34, 211, 238, 0.05) 0,
      rgba(34, 211, 238, 0.05) 1px,
      transparent 1px,
      transparent 56px
    );
  transform: perspective(420px) rotateX(68deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 85%, transparent 100%);
  animation: grid-pulse 10s var(--ease-soft) infinite alternate;
}

@keyframes grid-pulse {
  0% { opacity: 0.45; }
  100% { opacity: 0.75; }
}

/* ── Hex overlay ── */
.bg-hex {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath fill='none' stroke='rgba(34,211,238,0.35)' stroke-width='0.6' d='M28 1 L54 15 L54 43 L28 57 L2 43 L2 15 Z M28 43 L54 57 L54 85 L28 99 L2 85 L2 57 Z'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, black 20%, transparent 75%);
}

/* ── Floating shapes ── */
.bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 8;
}

.bg-shape {
  position: absolute;
  border: 1px solid rgba(34, 211, 238, 0.15);
  background: rgba(34, 211, 238, 0.03);
  backdrop-filter: blur(2px);
  animation: shape-float var(--shape-dur, 18s) var(--ease-soft) infinite alternate;
}

.bg-shape--ring {
  border-radius: 50%;
  background: transparent;
  border-width: 1.5px;
}

.bg-shape--diamond {
  transform: rotate(45deg);
}

.bg-shape--square {
  border-radius: 4px;
}

@keyframes shape-float {
  0% { transform: translate(0, 0) rotate(var(--shape-rot, 0deg)); opacity: var(--shape-o, 0.35); }
  100% { transform: translate(var(--shape-tx, 20px), var(--shape-ty, -30px)) rotate(calc(var(--shape-rot, 0deg) + 12deg)); opacity: calc(var(--shape-o, 0.35) + 0.15); }
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -25px) scale(1.08); }
}

.bg-gradient {
  z-index: 6;
}

.bg-mesh {
  z-index: 7;
}

.bg-vignette {
  z-index: 9;
}

#stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.bg-spotlight {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.07), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.8s var(--ease);
  z-index: 14;
}

body.bg-music-active .bg-gradient {
  animation: gradient-pulse 6s var(--ease-soft) infinite alternate, music-glow 2.5s ease-in-out infinite;
}

@keyframes music-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

body.is-active .bg-spotlight {
  opacity: 1;
}

.bg-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  opacity: 0.4;
}

.bg-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%),
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 80% 70%, rgba(148, 163, 184, 0.06), transparent 50%);
  pointer-events: none;
  animation: gradient-pulse 14s var(--ease-soft) infinite alternate;
}

@keyframes gradient-pulse {
  0% { opacity: 0.85; }
  100% { opacity: 1; }
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { transform: translate(4%, -3%) scale(1.06) rotate(2deg); }
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 70% at 50% 50%, transparent 15%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 35%);
  pointer-events: none;
}

.bg,
.bg * {
  pointer-events: none;
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
  z-index: 11;
}

.bg-scanline {
  z-index: 12;
}

.bg-noise {
  z-index: 13;
}

/* ── Layout ── */
.page {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 5rem;
  animation: page-in 1s var(--ease-soft) both;
}

@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Card ── */
.card {
  position: relative;
  width: 100%;
  max-width: var(--card-max);
  padding: 1.75rem 1.85rem 1.6rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 32px 100px rgba(0, 0, 0, 0.6),
    0 0 80px color-mix(in srgb, var(--accent-2) 10%, transparent);
  animation: card-in 1.2s var(--ease-soft) both;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease), box-shadow 0.65s var(--ease), border-color 0.5s var(--ease);
  overflow: hidden;
}

.card:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    var(--shadow-lg),
    var(--shadow-glow);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.96);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.card-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 50%, transparent),
    transparent 40%,
    color-mix(in srgb, var(--accent-2) 40%, transparent) 70%,
    transparent
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: border-spin 8s linear infinite;
}

@keyframes border-spin {
  to { filter: hue-rotate(360deg); }
}

.card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  animation: card-shine 6s ease-in-out infinite;
  pointer-events: none;
}

.card-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: color-mix(in srgb, var(--accent-2) 45%, transparent);
  border-style: solid;
  opacity: 0.6;
  pointer-events: none;
}

.card-corner--tl {
  top: 12px;
  left: 12px;
  border-width: 1px 0 0 1px;
  border-radius: 4px 0 0 0;
}

.card-corner--br {
  bottom: 12px;
  right: 12px;
  border-width: 0 1px 1px 0;
  border-radius: 0 0 4px 0;
}

@keyframes card-shine {
  0%, 80%, 100% { left: -100%; }
  45% { left: 150%; }
}

/* ── Profile header ── */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
  position: relative;
  z-index: 2;
}

.profile-header--top {
  padding-top: 0.35rem;
}

.avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  animation: avatar-float 5s ease-in-out infinite;
}

@keyframes avatar-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.avatar-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  animation: avatar-pulse 3s ease-in-out infinite;
}

@keyframes avatar-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

.avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from var(--ring-angle, 0deg), var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  animation: spin 5s linear infinite;
}

@property --ring-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes spin {
  to { --ring-angle: 360deg; }
}

.avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 42%;
  border: 3px solid rgba(0, 0, 0, 0.85);
  background: #0c0c14;
  filter: grayscale(1) contrast(1.05);
  transition: transform 0.55s var(--ease), filter 0.55s var(--ease);
}

.avatar-wrap:hover .avatar {
  filter: grayscale(0.85) contrast(1.08);
}

.avatar-wrap:hover .avatar {
  transform: scale(1.05);
}

.status-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid var(--bg);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
  animation: status-pulse 2.5s var(--ease-soft) infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.45); transform: scale(1); }
  50% { box-shadow: 0 0 16px rgba(34, 197, 94, 0.75); transform: scale(1.08); }
}

.name-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.username {
  position: relative;
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  overflow: hidden;
}

.username-text {
  background: linear-gradient(120deg, #fff 0%, var(--accent) 45%, var(--accent-2) 85%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.username-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.4) 50%, transparent 62%);
  transform: translateX(-130%);
  animation: shine 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0%, 65%, 100% { transform: translateX(-130%); }
  80% { transform: translateX(130%); }
}

.role {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.handle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.handle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--text);
}

.handle:active {
  transform: scale(0.96);
}

.handle.copied {
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.handle-copy-icon {
  opacity: 0.5;
  transition: opacity var(--dur) var(--ease);
}

.handle:hover .handle-copy-icon {
  opacity: 1;
}

.badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.22rem 0.6rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
  animation: badge-in 0.5s var(--ease-soft) both;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.badge:nth-child(1) { animation-delay: 0.5s; }
.badge:nth-child(2) { animation-delay: 0.58s; }
.badge:nth-child(3) { animation-delay: 0.66s; }

@keyframes badge-in {
  from { opacity: 0; transform: translateY(8px) scale(0.9); }
}

.badge-verified {
  color: var(--accent-2);
  border-color: color-mix(in srgb, var(--accent-2) 35%, transparent);
  background: color-mix(in srgb, var(--accent-2) 12%, transparent);
}

.badge-premium {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* ── Bio ── */
.bio {
  text-align: center;
  margin-bottom: 1.1rem;
  padding: 0 0.15rem;
}

.bio-line,
.bio-hours {
  opacity: 1;
  transform: translateY(0);
}

.bio:not(.bio--animate) .bio-line,
.bio:not(.bio--animate) .bio-hours {
  opacity: 1;
  transform: none;
}

.bio.bio--animate .bio-line,
.bio.bio--animate .bio-hours {
  opacity: 0;
  transform: translateY(10px);
  animation: bio-in 0.9s var(--ease-soft) forwards;
}

@keyframes bio-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bio-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.bio-title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.3rem;
}

.bio-stack {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.bio-hours {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bio-hour {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.bio-hour:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent-2) 30%, transparent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.bio-hour-value {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-2);
}

.bio-hour-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Tags ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  list-style: none;
  margin-bottom: 1.15rem;
}

.tag {
  padding: 0.28rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
  animation: tag-in 0.75s var(--ease-soft) both;
}

.tag:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

@keyframes tag-in {
  from { opacity: 0; transform: scale(0.85); }
}

/* ── Stats ── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  list-style: none;
  margin-bottom: 1.35rem;
  padding: 0.9rem 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: box-shadow var(--dur) var(--ease);
}

.stats:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 28px rgba(0, 0, 0, 0.25);
}

.stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  position: relative;
}

.stats li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.stat-value {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  transition: color var(--dur) var(--ease), text-shadow var(--dur) var(--ease);
}

.stats li:hover .stat-value {
  color: var(--accent-2);
  text-shadow: 0 0 20px color-mix(in srgb, var(--accent-2) 40%, transparent);
}

.stat-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ── Links ── */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.link-btn {
  position: relative;
  display: flex;
  cursor: pointer;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.links--animate .link-btn {
  opacity: 0;
  transform: translateY(12px);
  animation: link-in 0.85s var(--ease-soft) forwards;
}

@keyframes link-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.link-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: translateX(-100%);
  transition: transform 0.65s var(--ease);
}

.link-btn:hover::before {
  transform: translateX(100%);
}

.link-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 24px var(--accent-glow);
}

.link-btn:active {
  transform: translateY(0) scale(0.99);
}

.link-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), rgba(34, 211, 238, 0.2), transparent 55%);
  transition: opacity 0.35s;
  pointer-events: none;
}

.link-btn:active::after {
  opacity: 1;
}

.link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.link-btn:hover .link-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.link-icon svg {
  width: 18px;
  height: 18px;
}

.link-btn[data-platform="telegram"] .link-icon { color: #38bdf8; }
.link-btn[data-platform="github"] .link-icon { color: #e2e8f0; }
.link-btn[data-platform="discord"] .link-icon { color: #818cf8; }
.link-btn[data-platform="vk"] .link-icon { color: #60a5fa; }
.link-btn[data-platform="email"] .link-icon { color: var(--accent); }
.link-btn[data-platform="steam"] .link-icon { color: #94a3b8; }

.link-text {
  flex: 1;
  min-width: 0;
}

.link-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.link-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.link-arrow {
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.link-btn:hover .link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Footer ── */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 1.2rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: fade-up 0.8s var(--ease-soft) 1.1s both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.footer-time {
  font-family: var(--mono);
  font-size: 0.62rem;
  opacity: 0.7;
}

.footer-time::before {
  content: "·";
  margin-right: 0.5rem;
  opacity: 0.4;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(24px) scale(0.96);
  padding: 0.7rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(16, 16, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease-spring);
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* ── Музыка: кольцо + дуга (референс) ── */
.music-dock {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  animation: music-dock-in 1.1s var(--ease-soft) 0.5s both;
}

@keyframes music-dock-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.music-ring {
  display: block;
  width: 220px;
  height: 220px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.45s var(--ease-spring), filter 0.45s var(--ease);
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5));
}

.music-ring:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.55));
}

.music-ring:active {
  transform: scale(0.97);
  transition-duration: 0.15s;
}

.music-ring.playing {
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 28px rgba(34, 211, 238, 0.12));
}

.music-ring-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.music-arc-band {
  fill: none;
  stroke: rgba(14, 14, 18, 0.95);
  stroke-width: 26;
  stroke-linecap: round;
  transition: stroke 0.5s var(--ease), filter 0.5s var(--ease);
}

.music-ring:hover .music-arc-band {
  stroke: rgba(20, 20, 26, 0.98);
}

.music-ring.playing .music-arc-band {
  stroke: rgba(18, 22, 28, 0.96);
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.15));
}

.music-arc-text {
  fill: #fff;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: 0.05em;
  transition: fill 0.4s var(--ease);
}

.music-btn-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 6;
  transition: stroke 0.4s var(--ease);
}

.music-ring:hover .music-btn-ring {
  stroke: rgba(255, 255, 255, 0.22);
}

.music-btn-face {
  fill: url(#btn-face);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
  transition: filter 0.4s var(--ease), transform 0.45s var(--ease-spring);
  transform-origin: center;
}

.music-ring:hover .music-btn-face {
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}

.music-ring.playing .music-btn-face {
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 16px rgba(34, 211, 238, 0.1));
}

.music-btn-icon .ico {
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.4s var(--ease-spring);
}

@keyframes ico-in {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.music-dock.needs-sound .ico-speaker {
  visibility: visible;
  animation: ico-in 0.45s var(--ease-spring) both;
}

.music-ring.playing .ico-speaker,
.music-ring.playing .ico-play {
  visibility: hidden;
}

.music-ring.playing .ico-pause {
  visibility: visible;
  animation: ico-in 0.45s var(--ease-spring) both;
}

.music-vol-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@keyframes music-bar {
  0%, 100% { transform: scaleY(0.45); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ── Mobile ── */
@media (pointer: coarse), (max-width: 480px) {
  .username {
    font-size: 1.75rem;
  }

  .music-dock {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 0.75rem;
    animation-name: music-dock-in-mobile;
  }

  @keyframes music-dock-in-mobile {
    from { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.92); }
    to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  }

  .music-ring {
    width: 180px;
    height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
