:root {
  --bg-1: #1a0d2e;
  --bg-2: #2d1b4e;
  --bg-3: #4a2868;
  --card: rgba(40, 22, 60, 0.65);
  --card-border: rgba(255, 158, 199, 0.18);
  --text: #fce8f0;
  --muted: #b8a4c9;
  --accent: #ff9ec7;        /* sakura pink */
  --accent-2: #c9b6ff;      /* lavender */
  --accent-3: #8eecd0;      /* mint */
  --link-bg: rgba(255, 158, 199, 0.05);
  --link-bg-hover: rgba(255, 158, 199, 0.12);
  --status-online: #8eecd0;
  --status-idle: #ffd6a5;
  --status-dnd: #ff8fa3;
  --status-offline: #8a7d99;

  /* Easing curves — used everywhere for consistent feel. */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);   /* slight overshoot */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);      /* smooth deceleration */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);        /* material standard */
}

* { box-sizing: border-box; }

::selection {
  background: rgba(255, 158, 199, 0.45);
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 158, 199, 0.8);
}

/* Atmospheric aurora glow draped across the top of the page. */
body::before {
  content: "";
  position: fixed;
  top: -10%;
  left: -10%;
  right: -10%;
  height: 70vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 30% 0%, rgba(255, 158, 199, 0.22) 0%, transparent 70%),
    radial-gradient(50% 35% at 70% 0%, rgba(201, 182, 255, 0.18) 0%, transparent 70%),
    radial-gradient(45% 30% at 50% 5%, rgba(142, 236, 208, 0.14) 0%, transparent 70%);
  filter: blur(40px);
  mix-blend-mode: screen;
  animation: aurora-flow 22s ease-in-out infinite alternate;
}

@keyframes aurora-flow {
  0%   { transform: translateX(-3%) skewX(-1deg) scaleY(0.95); opacity: 0.85; }
  100% { transform: translateX(3%)  skewX(1deg)  scaleY(1.05); opacity: 1; }
}

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

body {
  font-family: "M PLUS Rounded 1c", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(1rem, 4vw, 3rem) 1rem 4rem;
  position: relative;
  overflow-x: hidden;
}

/* Cards container — lays profile cards side-by-side on wide screens,
   stacks them on narrower viewports. */
.cards {
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
}

/* When there's only one card, fall back to the original max width
   so a solo profile still looks the same as before. */
.cards.single { max-width: 460px; }

/* Animated gradient blob field — pure CSS, GPU compositing */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 900px at 50% -10%, rgba(255, 158, 199, 0.22) 0%, transparent 60%),
    var(--bg-1);
}

.bg::before,
.bg::after,
.bg span {
  content: "";
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}

.bg::before {
  background: radial-gradient(circle, #ff9ec7 0%, transparent 65%);
  top: -20vmax;
  left: -10vmax;
  animation: drift1 22s ease-in-out infinite alternate;
}

.bg::after {
  background: radial-gradient(circle, #c9b6ff 0%, transparent 65%);
  bottom: -25vmax;
  right: -15vmax;
  animation: drift2 28s ease-in-out infinite alternate;
}

.bg span {
  background: radial-gradient(circle, #8eecd0 0%, transparent 65%);
  top: 30vh;
  left: 40vw;
  width: 45vmax;
  height: 45vmax;
  opacity: 0.35;
  animation: drift3 34s ease-in-out infinite alternate;
}

/* Cursor glow — a fixed-position blob that follows the mouse via JS-driven
   transform translate3d. GPU-composited (no repaint), works on old hardware. */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  margin: -300px 0 0 -300px;  /* center on the transform target */
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(255, 158, 199, 0.35) 0%,
    rgba(201, 182, 255, 0.18) 25%,
    rgba(142, 236, 208, 0.08) 50%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(20px);
  will-change: transform;
  transform: translate3d(50vw, 50vh, 0);
}

@keyframes drift1 {
  0%   { transform: translate3d(0, 0, 0)        scale(1); }
  100% { transform: translate3d(20vw, 15vh, 0)  scale(1.15); }
}
@keyframes drift2 {
  0%   { transform: translate3d(0, 0, 0)         scale(1.1); }
  100% { transform: translate3d(-18vw, -20vh, 0) scale(0.9); }
}
@keyframes drift3 {
  0%   { transform: translate3d(0, 0, 0)         scale(0.9) rotate(0deg); }
  100% { transform: translate3d(-15vw, 10vh, 0)  scale(1.2) rotate(40deg); }
}

/* Subtle grain to keep big gradients from banding */
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.card {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 460px;
  background: var(--card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid transparent; /* replaced by rotating gradient via ::after */
  border-radius: 22px;
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  /* Entrance animation — only opacity, transform is JS-controlled. */
  animation:
    rise 0.7s var(--ease-out) backwards,
    card-aura 14s ease-in-out infinite alternate;
  animation-delay: calc(var(--card-index, 0) * 120ms), 0s;
  overflow: hidden;
  position: relative;
  /* JS sets `transform` and `transition` directly on this element for the
     mouse-tracking 3D tilt. CSS leaves the property alone here. */
  will-change: transform;
}

/* Spotlight overlay that follows the cursor inside the card. */
.card-spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, -200px),
    rgba(255, 158, 199, 0.18),
    rgba(201, 182, 255, 0.10) 25%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.35s var(--ease-smooth);
  z-index: 0;
  mix-blend-mode: screen;
}

.card:hover .card-spotlight { opacity: 1; }

.banner {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 110px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  z-index: 0;
}

.banner + .profile { position: relative; z-index: 1; padding-top: 70px; }
.profile { position: relative; z-index: 1; }

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.profile {
  text-align: center;
}

.avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 0.75rem;
  animation: avatar-wobble 3.2s ease-in-out infinite alternate;
}

@keyframes avatar-wobble {
  0%   { transform: rotate(-10deg) translateY(0)    scale(1); }
  50%  { transform: rotate(0deg)   translateY(-12px) scale(1.06); }
  100% { transform: rotate(10deg)  translateY(0)    scale(1); }
}

/* Soft magical glow ring around the avatar — pulses gently. */
.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 158, 199, 0.0) 0deg,
    rgba(255, 158, 199, 0.55) 90deg,
    rgba(201, 182, 255, 0.55) 180deg,
    rgba(142, 236, 208, 0.55) 270deg,
    rgba(255, 158, 199, 0.0) 360deg
  );
  filter: blur(10px);
  opacity: 0.7;
  z-index: -1;
  animation: avatar-spin 16s linear infinite;
}

@keyframes avatar-spin {
  to { transform: rotate(360deg); }
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  background: #2a1b40;
  border: 3px solid rgba(255, 158, 199, 0.35);
  display: block;
  box-shadow: 0 0 24px rgba(255, 158, 199, 0.25);
  transition:
    transform 0.5s var(--ease-spring),
    border-color 0.4s var(--ease-smooth),
    box-shadow 0.4s var(--ease-smooth);
}

.card:hover .avatar {
  transform: scale(1.07);
  border-color: rgba(255, 158, 199, 0.65);
  box-shadow: 0 0 36px rgba(255, 158, 199, 0.55);
}

/* A little sparkle that orbits the avatar. */
.avatar-wrap::after {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 16px;
  color: #ffe4f0;
  text-shadow:
    0 0 8px rgba(255, 158, 199, 0.95),
    0 0 16px rgba(255, 158, 199, 0.6);
  pointer-events: none;
  transform-origin: 0 0;
  animation: sparkle-orbit 7s linear infinite;
}

@keyframes sparkle-orbit {
  from { transform: translate(-50%, -50%) rotate(0deg)   translateX(72px) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg) translateX(72px) rotate(-360deg); }
}

.status-dot {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--status-offline);
  border: 3px solid var(--bg-1);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.status-dot[data-status="online"]  {
  background: var(--status-online);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 12px rgba(142, 236, 208, 0.7);
  animation: status-pulse 2.4s ease-in-out infinite;
}
.status-dot[data-status="idle"]    { background: var(--status-idle); }
.status-dot[data-status="dnd"]     { background: var(--status-dnd); }
.status-dot[data-status="offline"] { background: var(--status-offline); }

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 0 8px  rgba(142, 236, 208, 0.5); }
  50%      { box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 0 16px rgba(142, 236, 208, 0.9); }
}

h1 {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0.25rem 0 0.1rem;
  letter-spacing: -0.01em;
  background: linear-gradient(
    110deg,
    #ffd1e8 0%,
    #ff9ec7 25%,
    #c9b6ff 50%,
    #8eecd0 75%,
    #ffd1e8 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: name-shimmer 7s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(255, 158, 199, 0.25));
}

@keyframes name-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.handle {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
  animation: handle-glow 3.2s ease-in-out infinite alternate;
}

@keyframes handle-glow {
  0%   { text-shadow: 0 0 0    rgba(255, 158, 199, 0); transform: scale(1)    translateX(-3px); }
  100% { text-shadow: 0 0 24px rgba(255, 158, 199, 1); transform: scale(1.1)  translateX(3px); }
}
.handle::before {
  content: "⋆ ";
  color: var(--accent);
  text-shadow: 0 0 6px rgba(255, 158, 199, 0.6);
}
.handle::after  {
  content: " ⋆";
  color: var(--accent-2);
  text-shadow: 0 0 6px rgba(201, 182, 255, 0.6);
}

.bio {
  margin: 0 0 1.25rem;
  color: var(--text);
  opacity: 0.92;
  line-height: 1.45;
  font-size: 0.98rem;
}

.bio-word {
  display: inline-block;
  opacity: 0;
  filter: blur(4px);
  transform: translateY(6px);
  animation: bio-word-in 0.5s var(--ease-out) both;
}

@keyframes bio-word-in {
  to { opacity: 0.92; filter: blur(0); transform: translateY(0); }
}

.discord-panel {
  background: rgba(255, 158, 199, 0.06);
  border: 1px solid rgba(255, 158, 199, 0.22);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  margin-bottom: 1.25rem;
}

.discord-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffd1e8;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.custom-status {
  margin: 0.5rem 0 0;
  color: var(--text);
  font-size: 0.95rem;
}

.activities {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.activity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  transition: transform 0.35s var(--ease-spring), background 0.25s var(--ease-smooth);
}

.activity:hover {
  background: rgba(255, 158, 199, 0.08);
  transform: translateX(3px);
}

.activity-art {
  position: relative;
  flex: 0 0 auto;
}

.activity-art img.large {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #2a2c50;
  transition: transform 0.5s var(--ease-spring);
}

.activity:hover .activity-art img.large {
  transform: scale(1.08) rotate(-3deg);
}

.activity-art img.small {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--card);
  background: #2a2c50;
}

.activity-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.activity-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-detail {
  font-size: 0.82rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity.spotify .activity-name::before {
  content: "♪ ";
  color: #1db954;
}

.activity-progress {
  margin-top: 6px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.activity-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% 100%;
  width: 0%;
  transition: width 1s linear;
  animation: progress-shimmer 2.5s linear infinite;
}
.activity.spotify .activity-progress > span {
  background: linear-gradient(90deg, #1db954, #4ee884, #1db954);
  background-size: 200% 100%;
}

@keyframes progress-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.activity-elapsed {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.section-title {
  margin: 1rem 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.platform-icons {
  position: absolute;
  left: 4px;
  bottom: 4px;
  display: flex;
  gap: 2px;
}
.platform-icons svg {
  width: 14px;
  height: 14px;
  background: var(--bg-1);
  border-radius: 50%;
  padding: 3px;
  color: var(--accent);
  border: 2px solid var(--bg-1);
}

.badges {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  min-height: 0;
}
.badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text);
  font-weight: 600;
}

.voice-state {
  margin-top: 0.5rem;
  background: rgba(67, 230, 194, 0.08);
  border: 1px solid rgba(67, 230, 194, 0.25);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.voice-state .vs-channel { font-weight: 600; }
.voice-state .vs-flags { color: var(--muted); font-size: 0.78rem; margin-left: auto; }

.roles-section { margin-top: 1rem; }
.roles { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: var(--text);
}
.role-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.connections-panel {
  margin-bottom: 1.25rem;
}
.connections {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.4rem;
}
.connection {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  background: var(--link-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text);
  transition:
    transform 0.3s var(--ease-spring),
    background 0.25s var(--ease-smooth),
    border-color 0.25s var(--ease-smooth);
}

.connection:hover {
  background: var(--link-bg-hover);
  border-color: rgba(255, 158, 199, 0.5);
  transform: translateY(-2px);
}

.connection:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 158, 199, 0.35);
}
.connection .conn-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.connection .conn-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.connection .verified {
  font-size: 11px;
  color: #43e6c2;
}

.links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.links li {
  /* Stagger each link's entrance after the card rises in. */
  animation: link-slide 0.55s var(--ease-out) both;
  animation-delay: calc(0.45s + var(--card-index, 0) * 120ms + var(--i, 0) * 60ms);
}
.links li:nth-child(1) { --i: 0; }
.links li:nth-child(2) { --i: 1; }
.links li:nth-child(3) { --i: 2; }
.links li:nth-child(4) { --i: 3; }
.links li:nth-child(5) { --i: 4; }
.links li:nth-child(6) { --i: 5; }
.links li:nth-child(7) { --i: 6; }
.links li:nth-child(8) { --i: 7; }
.links li:nth-child(9) { --i: 8; }

@keyframes link-slide {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}

.links a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  background: var(--link-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-spring),
    background 0.25s var(--ease-smooth),
    border-color 0.25s var(--ease-smooth),
    box-shadow 0.3s var(--ease-smooth);
}

/* Shine sweep — a soft band of light slides across the button on hover. */
.links a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 250% 100%;
  background-position: 200% 0;
  pointer-events: none;
  transition: background-position 0.7s var(--ease-out);
}

.links a:hover {
  background: var(--link-bg-hover);
  border-color: rgba(255, 158, 199, 0.5);
  transform: translateX(4px) translateY(-1px);
  box-shadow:
    0 8px 24px rgba(255, 158, 199, 0.22),
    0 0 0 1px rgba(255, 158, 199, 0.18) inset;
}

.links a:hover::after { background-position: -150% 0; }

.links a:active {
  transform: translateX(2px) translateY(0) scale(0.985);
  transition-duration: 0.1s;
}

.links a:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(255, 158, 199, 0.35),
    0 8px 24px rgba(255, 158, 199, 0.22);
}

.links a .label { flex: 1; }

.links a .arrow {
  color: var(--muted);
  transition: transform 0.4s var(--ease-spring), color 0.25s ease;
}

.links a:hover .arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.link-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.4s var(--ease-spring), filter 0.3s var(--ease-smooth);
}

.links a:hover .link-icon {
  transform: scale(1.2) rotate(-8deg);
  filter: drop-shadow(0 0 8px rgba(255, 158, 199, 0.95));
}

.foot {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.foot code {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.75rem;
}

/* ── Falling sakura petals ──────────────────────────────────────────── */
.sakura {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.sakura span {
  position: absolute;
  top: -24px;
  width: 14px;
  height: 14px;
  /* default: sakura pink */
  background: radial-gradient(
    circle at 35% 30%,
    #ffe4f0 0%,
    #ffb4d4 45%,
    #ff8fb8 75%,
    transparent 100%
  );
  /* asymmetric border-radius gives a petal silhouette */
  border-radius: 14px 0 14px 0;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(255, 158, 199, 0.5));
  animation: sakura-fall linear infinite;
}

/* Every 3rd petal is white, every 3rd offset is lavender. */
.sakura span:nth-child(3n+2) {
  background: radial-gradient(
    circle at 35% 30%,
    #ffffff 0%,
    #ffe9f2 50%,
    #ffd1e8 80%,
    transparent 100%
  );
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.55));
}
.sakura span:nth-child(3n) {
  background: radial-gradient(
    circle at 35% 30%,
    #efe6ff 0%,
    #d4c2ff 50%,
    #b6a0ff 80%,
    transparent 100%
  );
  filter: drop-shadow(0 0 5px rgba(201, 182, 255, 0.55));
}

/* Stagger position, size, speed, and delay so they don't look identical. */
.sakura span:nth-child(1)  { left:  4%; animation-duration: 13s; animation-delay:  -1s; transform: scale(0.8); }
.sakura span:nth-child(2)  { left: 13%; animation-duration: 17s; animation-delay:  -6s; transform: scale(1.1); }
.sakura span:nth-child(3)  { left: 22%; animation-duration: 11s; animation-delay:  -3s; transform: scale(0.7); }
.sakura span:nth-child(4)  { left: 31%; animation-duration: 19s; animation-delay:  -9s; transform: scale(1.0); }
.sakura span:nth-child(5)  { left: 40%; animation-duration: 14s; animation-delay:  -2s; transform: scale(0.9); }
.sakura span:nth-child(6)  { left: 49%; animation-duration: 16s; animation-delay: -11s; transform: scale(1.2); }
.sakura span:nth-child(7)  { left: 58%; animation-duration: 12s; animation-delay:  -5s; transform: scale(0.8); }
.sakura span:nth-child(8)  { left: 67%; animation-duration: 18s; animation-delay:  -8s; transform: scale(1.0); }
.sakura span:nth-child(9)  { left: 76%; animation-duration: 15s; animation-delay:  -4s; transform: scale(0.7); }
.sakura span:nth-child(10) { left: 85%; animation-duration: 20s; animation-delay: -13s; transform: scale(1.1); }
.sakura span:nth-child(11) { left: 92%; animation-duration: 13s; animation-delay:  -7s; transform: scale(0.9); }
.sakura span:nth-child(12) { left: 96%; animation-duration: 17s; animation-delay: -10s; transform: scale(0.8); }

@keyframes sakura-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  10% { opacity: 0.85; }
  50% {
    transform: translate3d(40px, 50vh, 0) rotate(220deg);
  }
  90% { opacity: 0.85; }
  100% {
    opacity: 0;
    transform: translate3d(-30px, 110vh, 0) rotate(540deg);
  }
}

/* ── Twinkling starfield ────────────────────────────────────────────── */
.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 4px rgba(255, 255, 255, 0.9),
    0 0 10px rgba(255, 209, 232, 0.6);
  animation: twinkle 3.5s ease-in-out infinite;
}

/* hand-tuned positions — spread across the viewport, no clusters */
.stars span:nth-child(1)  { top:  6%; left:  8%; animation-delay: -0.2s; }
.stars span:nth-child(2)  { top: 12%; left: 22%; animation-delay: -1.4s; width: 3px; height: 3px; }
.stars span:nth-child(3)  { top:  4%; left: 38%; animation-delay: -2.7s; }
.stars span:nth-child(4)  { top: 18%; left: 53%; animation-delay: -0.8s; }
.stars span:nth-child(5)  { top:  9%; left: 67%; animation-delay: -3.1s; width: 3px; height: 3px; }
.stars span:nth-child(6)  { top: 14%; left: 81%; animation-delay: -1.9s; }
.stars span:nth-child(7)  { top:  7%; left: 93%; animation-delay: -2.3s; }
.stars span:nth-child(8)  { top: 28%; left: 14%; animation-delay: -0.5s; }
.stars span:nth-child(9)  { top: 32%; left: 29%; animation-delay: -2.8s; width: 3px; height: 3px; }
.stars span:nth-child(10) { top: 38%; left: 44%; animation-delay: -1.1s; }
.stars span:nth-child(11) { top: 26%; left: 60%; animation-delay: -3.4s; }
.stars span:nth-child(12) { top: 34%; left: 76%; animation-delay: -0.7s; }
.stars span:nth-child(13) { top: 30%; left: 89%; animation-delay: -2.0s; width: 3px; height: 3px; }
.stars span:nth-child(14) { top: 52%; left:  5%; animation-delay: -1.6s; }
.stars span:nth-child(15) { top: 56%; left: 19%; animation-delay: -3.0s; }
.stars span:nth-child(16) { top: 48%; left: 34%; animation-delay: -0.4s; width: 3px; height: 3px; }
.stars span:nth-child(17) { top: 62%; left: 49%; animation-delay: -2.5s; }
.stars span:nth-child(18) { top: 54%; left: 63%; animation-delay: -1.2s; }
.stars span:nth-child(19) { top: 58%; left: 78%; animation-delay: -3.3s; }
.stars span:nth-child(20) { top: 50%; left: 91%; animation-delay: -0.9s; }
.stars span:nth-child(21) { top: 74%; left: 11%; animation-delay: -2.1s; width: 3px; height: 3px; }
.stars span:nth-child(22) { top: 80%; left: 26%; animation-delay: -1.5s; }
.stars span:nth-child(23) { top: 76%; left: 70%; animation-delay: -2.9s; }
.stars span:nth-child(24) { top: 84%; left: 85%; animation-delay: -0.6s; }
.stars span:nth-child(25) { top: 90%; left: 42%; animation-delay: -3.2s; width: 3px; height: 3px; }

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.4); }
}

/* ── Card aura + sparkle decoration ─────────────────────────────────── */
.card {
  isolation: isolate;
}

@keyframes card-aura {
  0% {
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.35),
      0 0 30px rgba(255, 158, 199, 0.18),
      0 0 0 1px rgba(255, 158, 199, 0.0) inset;
  }
  50% {
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.35),
      0 0 40px rgba(201, 182, 255, 0.22),
      0 0 0 1px rgba(201, 182, 255, 0.05) inset;
  }
  100% {
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.35),
      0 0 35px rgba(142, 236, 208, 0.2),
      0 0 0 1px rgba(142, 236, 208, 0.05) inset;
  }
}

/* Cute sparkle row pinned to the top of every card. */
.card::before {
  content: "˚｡⋆ ✦ ⋆｡˚";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255, 209, 232, 0.55);
  z-index: 2;
  pointer-events: none;
  animation: sparkle-shimmer 4s ease-in-out infinite;
}

@keyframes sparkle-shimmer {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.95; }
}

/* ── Heart on link arrow when hovering ──────────────────────────────── */
.links a .arrow { position: relative; }
.links a .arrow::before {
  content: "♡ ";
  display: inline-block;
  opacity: 0;
  transform: translateX(4px) scale(0.6);
  transition: opacity 0.18s ease, transform 0.18s ease;
  color: var(--accent);
}
.links a:hover .arrow::before {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* ── Cute scrollbar (Webkit) ────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff9ec7, #c9b6ff);
  border-radius: 999px;
  border: 2px solid var(--bg-1);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffb4d4, #d4c2ff);
}
/* Firefox */
html { scrollbar-color: #ff9ec7 transparent; scrollbar-width: thin; }

/* ── Floating hearts rising up the page ─────────────────────────────── */
.hearts {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hearts span {
  position: absolute;
  bottom: -30px;
  font-size: 18px;
  line-height: 1;
  color: #ff9ec7;
  text-shadow:
    0 0 10px rgba(255, 158, 199, 0.85),
    0 0 18px rgba(255, 158, 199, 0.45);
  opacity: 0;
  animation: heart-rise linear infinite;
}
.hearts span::before { content: "♡"; }

.hearts span:nth-child(1) { left:  8%; animation-duration: 14s; animation-delay:  -2s; font-size: 16px; }
.hearts span:nth-child(2) { left: 22%; animation-duration: 18s; animation-delay:  -7s; color: #c9b6ff; text-shadow: 0 0 10px rgba(201,182,255,0.85); }
.hearts span:nth-child(3) { left: 36%; animation-duration: 12s; animation-delay: -10s; font-size: 22px; }
.hearts span:nth-child(4) { left: 51%; animation-duration: 20s; animation-delay:  -4s; }
.hearts span:nth-child(5) { left: 64%; animation-duration: 15s; animation-delay: -12s; color: #c9b6ff; text-shadow: 0 0 10px rgba(201,182,255,0.85); font-size: 14px; }
.hearts span:nth-child(6) { left: 76%; animation-duration: 17s; animation-delay:  -1s; font-size: 20px; }
.hearts span:nth-child(7) { left: 88%; animation-duration: 13s; animation-delay:  -6s; }
.hearts span:nth-child(8) { left: 95%; animation-duration: 19s; animation-delay:  -9s; font-size: 16px; }

@keyframes heart-rise {
  0%   { opacity: 0; transform: translateY(0)    translateX(0)   rotate(-5deg) scale(0.8); }
  15%  { opacity: 1; }
  50%  {              transform: translateY(-55vh) translateX(25px)  rotate(8deg)  scale(1); }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-110vh) translateX(-15px) rotate(-3deg) scale(0.6); }
}

/* ── Rotating holographic border on every card ──────────────────────── */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--angle),
    #ff9ec7,
    #c9b6ff,
    #8eecd0,
    #ffd1e8,
    #c9b6ff,
    #ff9ec7
  );
  -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;
  z-index: 3;
  animation: spin-border 6s linear infinite;
  opacity: 0.85;
}

/* Fallback for browsers without @property — static rainbow border. */
@supports not (background: conic-gradient(from var(--angle, 0deg), red, blue)) {
  .card::after { animation: none; }
}

@keyframes spin-border {
  to { --angle: 360deg; }
}

/* ── Subtle pulse glow on the discord panel ─────────────────────────── */
.discord-panel {
  animation: panel-pulse 5s ease-in-out infinite alternate;
}

@keyframes panel-pulse {
  0%   { box-shadow: inset 0 0 20px rgba(255, 158, 199, 0.04); }
  100% { box-shadow: inset 0 0 30px rgba(255, 158, 199, 0.18); }
}

/* ── Click sparkle burst ────────────────────────────────────────────── */
.click-sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 14px;
  line-height: 1;
  transform: translate(-50%, -50%);
  text-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
  animation: sparkle-pop 0.85s var(--ease-out) forwards;
  will-change: transform, opacity;
}

@keyframes sparkle-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(0.3);
  }
  20% {
    opacity: 1;
    transform:
      translate(-50%, -50%)
      translate(calc(var(--dx) * 0.35), calc(var(--dy) * 0.35))
      rotate(calc(var(--rot) * 0.35))
      scale(var(--scl));
  }
  100% {
    opacity: 0;
    transform:
      translate(-50%, -50%)
      translate(var(--dx), calc(var(--dy) + 30px))
      rotate(var(--rot))
      scale(calc(var(--scl) * 0.4));
  }
}

/* ── Discord header heartbeat ───────────────────────────────────────── */
.discord-header svg {
  animation: discord-beat 2.4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes discord-beat {
  0%, 100%   { transform: scale(1); }
  10%, 30%   { transform: scale(1.18); }
  20%        { transform: scale(0.94); }
  40%        { transform: scale(1); }
}

/* ── Badge bounce on hover ──────────────────────────────────────────── */
.badge {
  transition: transform 0.4s var(--ease-spring), background 0.25s var(--ease-smooth);
  cursor: default;
}
.badge:hover {
  transform: scale(1.25) rotate(-8deg);
  background: rgba(255, 158, 199, 0.25);
}

/* ── Role pill hover ────────────────────────────────────────────────── */
.role-pill {
  transition: transform 0.3s var(--ease-spring), background 0.25s var(--ease-smooth), border-color 0.25s var(--ease-smooth);
}
.role-pill:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(255, 158, 199, 0.12);
  border-color: rgba(255, 158, 199, 0.4);
}

/* ── Voice state hover ──────────────────────────────────────────────── */
.voice-state {
  transition: transform 0.3s var(--ease-spring), background 0.25s ease;
}
.voice-state:hover {
  transform: translateX(3px);
  background: rgba(67, 230, 194, 0.14);
}

/* ── Section title gentle entrance + ◆ marker ───────────────────────── */
.section-title {
  position: relative;
  animation: section-in 0.6s var(--ease-out) both;
  animation-delay: calc(var(--card-index, 0) * 120ms + 0.6s);
}
.section-title::before {
  content: "✦ ";
  color: var(--accent);
  text-shadow: 0 0 6px rgba(255, 158, 199, 0.7);
  margin-right: 0.2em;
}

@keyframes section-in {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Footer subtle hover sheen ──────────────────────────────────────── */
.foot {
  transition: color 0.3s ease;
}
.foot:hover { color: var(--accent); }

/* ── Idle pulses on every "live" element ───────────────────────────── */

/* Custom status: full opacity dip + visible bounce. */
.custom-status {
  animation: custom-pulse 2.6s ease-in-out infinite alternate;
}
@keyframes custom-pulse {
  from { opacity: 0.3; text-shadow: 0 0 0 rgba(255, 158, 199, 0); transform: scale(0.95) translateY(2px); }
  to   { opacity: 1;   text-shadow: 0 0 24px rgba(255, 158, 199, 1); transform: scale(1.08) translateY(-2px); }
}

/* Voice state: huge mint glow + visible slide. */
.voice-state {
  animation: voice-live 2.4s ease-in-out infinite;
}
@keyframes voice-live {
  0%, 100% { box-shadow: 0 0 0    rgba(67, 230, 194, 0); transform: translateX(-4px) scale(1); }
  50%      { box-shadow: 0 0 40px rgba(67, 230, 194, 1); transform: translateX(4px)  scale(1.04); }
}

/* Activity rows: bigger color shift, visible scale + glow. */
.activity {
  animation: activity-idle 4s ease-in-out infinite alternate;
}
@keyframes activity-idle {
  from { background: rgba(255, 255, 255, 0.04); box-shadow: 0 0 0  rgba(255, 158, 199, 0); transform: scale(1); }
  to   { background: rgba(255, 158, 199, 0.22); box-shadow: 0 0 22px rgba(255, 158, 199, 0.4); transform: scale(1.02); }
}

/* Activity name shimmer: cranked. */
.activity-name {
  background: linear-gradient(110deg, var(--text) 20%, #ffd1e8 50%, var(--text) 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: activity-name-shimmer 4s ease-in-out infinite;
}
@keyframes activity-name-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Discord status text: dramatic color + scale. */
.discord-header { animation: discord-text-pulse 2.6s ease-in-out infinite alternate; }
@keyframes discord-text-pulse {
  from { color: #8a7d99; transform: scale(0.96) translateX(-2px); text-shadow: 0 0 0  rgba(255, 158, 199, 0); }
  to   { color: #ffd1e8; transform: scale(1.08) translateX(2px);  text-shadow: 0 0 16px rgba(255, 158, 199, 1); }
}

/* ── Status dot — different vibe per status ─────────────────────────── */
.status-dot[data-status="idle"] {
  animation: status-idle-bob 2.4s ease-in-out infinite;
}
@keyframes status-idle-bob {
  0%, 100% { transform: translateY(0)    scale(1);    opacity: 1; }
  50%      { transform: translateY(-6px) scale(0.7);  opacity: 0.5; }
}

.status-dot[data-status="dnd"] {
  animation: status-dnd-throb 1.6s ease-in-out infinite;
}
@keyframes status-dnd-throb {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 0 0   rgba(255, 143, 163, 0); transform: scale(0.9); }
  50%      { box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 0 30px rgba(255, 143, 163, 1); transform: scale(1.35); }
}

/* online status pulses harder too */
.status-dot[data-status="online"]  {
  background: var(--status-online);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 12px rgba(142, 236, 208, 0.7);
  animation: status-pulse 2.4s ease-in-out infinite;
}

/* ── Section title's ✦ marker — fast spin + big scale + glow pulse ──── */
.section-title::before {
  display: inline-block;
  animation: marker-spin 4.5s linear infinite;
}
@keyframes marker-spin {
  0%   { transform: rotate(0deg)   scale(1);   filter: drop-shadow(0 0 4px rgba(255,158,199,0.5)); }
  50%  { transform: rotate(180deg) scale(1.6); filter: drop-shadow(0 0 12px rgba(255,158,199,1));  }
  100% { transform: rotate(360deg) scale(1);   filter: drop-shadow(0 0 4px rgba(255,158,199,0.5)); }
}

/* Section title text wobbles too */
.section-title {
  animation:
    section-in 0.6s var(--ease-out) both,
    title-wave 5s ease-in-out infinite alternate;
  animation-delay: calc(var(--card-index, 0) * 120ms + 0.6s), 1s;
}
@keyframes title-wave {
  from { transform: translateX(-3px) skewX(-2deg); }
  to   { transform: translateX(3px)  skewX(2deg); }
}

/* ── Cascade entrance for connections, roles, badges, activities ────── */
.connections .connection {
  animation: pop-in 0.5s var(--ease-spring) both;
}
.connections .connection:nth-child(1) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.55s); }
.connections .connection:nth-child(2) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.6s); }
.connections .connection:nth-child(3) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.65s); }
.connections .connection:nth-child(4) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.7s); }
.connections .connection:nth-child(5) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.75s); }
.connections .connection:nth-child(6) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.8s); }
.connections .connection:nth-child(n+7) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.85s); }

.roles .role-pill {
  animation: pop-in 0.45s var(--ease-spring) both;
}
.roles .role-pill:nth-child(1) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.55s); }
.roles .role-pill:nth-child(2) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.62s); }
.roles .role-pill:nth-child(3) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.69s); }
.roles .role-pill:nth-child(4) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.76s); }
.roles .role-pill:nth-child(5) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.83s); }
.roles .role-pill:nth-child(n+6) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.9s); }

.badges .badge {
  animation:
    pop-in 0.5s var(--ease-spring) both,
    badge-bob 3s ease-in-out infinite alternate;
  animation-delay: calc(var(--card-index, 0) * 120ms + 0.4s), 1s;
}
@keyframes badge-bob {
  from { transform: translateY(0)    rotate(-3deg); }
  to   { transform: translateY(-3px) rotate(3deg); }
}

.activities .activity {
  /* combine pop-in entrance with idle breath */
  animation:
    pop-in 0.5s var(--ease-spring) both,
    activity-idle 4s ease-in-out infinite alternate;
  animation-delay: calc(var(--card-index, 0) * 120ms + 0.5s), 0.7s;
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(20px) scale(0.6) rotate(-8deg); }
  to   { opacity: 1; transform: translateY(0)    scale(1)   rotate(0); }
}

/* Connections also get a subtle constant pulse */
.connections .connection {
  /* override animation to add the idle pulse after entry */
  animation:
    pop-in 0.5s var(--ease-spring) both,
    conn-idle 4s ease-in-out infinite alternate;
}
@keyframes conn-idle {
  from { box-shadow: 0 0 0  rgba(255, 158, 199, 0); }
  to   { box-shadow: 0 0 14px rgba(255, 158, 199, 0.3); }
}
.connections .connection:nth-child(1) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.55s), 1s; }
.connections .connection:nth-child(2) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.6s),  1.1s; }
.connections .connection:nth-child(3) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.65s), 1.2s; }
.connections .connection:nth-child(4) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.7s),  1.3s; }
.connections .connection:nth-child(5) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.75s), 1.4s; }
.connections .connection:nth-child(6) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.8s),  1.5s; }
.connections .connection:nth-child(n+7) { animation-delay: calc(var(--card-index, 0) * 120ms + 0.85s), 1.6s; }

/* Role pill dot pulses HUGE. */
.role-pill .dot {
  animation: role-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes role-dot-pulse {
  0%, 100% { transform: scale(0.8); filter: brightness(0.8) drop-shadow(0 0 0 currentColor); }
  50%      { transform: scale(2);   filter: brightness(2)   drop-shadow(0 0 10px currentColor); }
}

/* Connection icons rotate gently and grow on hover. */
.connection .conn-icon {
  transition: transform 0.4s var(--ease-spring);
}
.connection:hover .conn-icon {
  transform: scale(1.4) rotate(20deg);
}

/* ── Banner: aggressive ken-burns drift ─────────────────────────────── */
.banner {
  animation: banner-drift 10s ease-in-out infinite alternate;
}
@keyframes banner-drift {
  from { transform: scale(1)    translateX(0)     translateY(0); }
  to   { transform: scale(1.3)  translateX(-30px) translateY(-8px); }
}

/* ── Footer text drift — extreme opacity range ──────────────────────── */
.foot {
  animation: foot-drift 3s ease-in-out infinite alternate;
}
@keyframes foot-drift {
  from { opacity: 0.2; transform: translateY(0)    scale(0.97); }
  to   { opacity: 1;   transform: translateY(-4px) scale(1.03); }
}

/* Footer code element: pink glow throb. */
.foot code {
  animation: foot-code-pulse 2s ease-in-out infinite alternate;
}
@keyframes foot-code-pulse {
  from { background: rgba(255, 158, 199, 0.06); box-shadow: 0 0 0  rgba(255, 158, 199, 0); transform: scale(1); }
  to   { background: rgba(255, 158, 199, 0.4);  box-shadow: 0 0 18px rgba(255, 158, 199, 0.9); color: #ffd1e8; transform: scale(1.05); }
}

/* ── Bio words wiggle on hover (huge) ───────────────────────────────── */
.bio-word {
  display: inline-block;
  transition: transform 0.3s var(--ease-spring), color 0.2s ease;
}
.bio-word:hover {
  transform: translateY(-12px) scale(1.35) rotate(-8deg);
  color: var(--accent);
  text-shadow: 0 0 16px rgba(255, 158, 199, 1);
}

/* ── Display name: continuous breath + dramatic wiggle on hover ─────── */
h1 {
  cursor: default;
  animation:
    name-shimmer 6s ease-in-out infinite,
    name-breath 3s ease-in-out infinite alternate;
}
@keyframes name-breath {
  from { transform: scale(0.96) translateY(0)    rotate(-1deg); }
  to   { transform: scale(1.08) translateY(-4px) rotate(1deg); }
}

h1:hover {
  animation:
    name-shimmer 6s ease-in-out infinite,
    name-wiggle 0.7s ease-in-out;
}
@keyframes name-wiggle {
  0%, 100% { transform: rotate(0deg)   scale(1); }
  10%      { transform: rotate(-12deg) scale(1.2); }
  25%      { transform: rotate(12deg)  scale(1.2); }
  40%      { transform: rotate(-8deg)  scale(1.15); }
  55%      { transform: rotate(8deg)   scale(1.15); }
  70%      { transform: rotate(-4deg)  scale(1.08); }
  85%      { transform: rotate(4deg)   scale(1.05); }
}

/* ── Twinkle stars sparkle wildly ───────────────────────────────────── */
@keyframes twinkle {
  0%, 100% { opacity: 0;   transform: scale(0.3); }
  50%      { opacity: 1;   transform: scale(2.5); }
}

/* ── Card sparkle decoration shimmers more strongly ─────────────────── */
@keyframes sparkle-shimmer {
  0%, 100% { opacity: 0.2; transform: translateX(-4px) scale(0.9); }
  25%      { opacity: 1;   transform: translateX(-2px) scale(1.05); }
  50%      { opacity: 1;   transform: translateX(0)    scale(1.15); }
  75%      { opacity: 1;   transform: translateX(2px)  scale(1.05); }
}

/* ── Discord SVG heartbeat — full punch ─────────────────────────────── */
@keyframes discord-beat {
  0%, 100%  { transform: scale(1)    rotate(0deg); }
  10%, 30%  { transform: scale(1.5)  rotate(-10deg); }
  20%       { transform: scale(0.8)  rotate(8deg); }
  40%       { transform: scale(1.1)  rotate(-3deg); }
  50%       { transform: scale(1)    rotate(0deg); }
}
.discord-header svg {
  animation: discord-beat 2.6s ease-in-out infinite;
}

/* ── Sparkle marker around the avatar — bigger orbit + pulse ────────── */
@keyframes sparkle-orbit {
  from { transform: translate(-50%, -50%) rotate(0deg)   translateX(72px) rotate(0deg)    scale(1); }
  50%  { transform: translate(-50%, -50%) rotate(180deg) translateX(72px) rotate(-180deg) scale(1.5); }
  to   { transform: translate(-50%, -50%) rotate(360deg) translateX(72px) rotate(-360deg) scale(1); }
}
.avatar-wrap::after {
  animation: sparkle-orbit 5.5s linear infinite;
}

/* Avatar glow ring spins faster */
.avatar-wrap::before {
  animation: avatar-spin 10s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; transition: none; transform: none; }
  .card:hover, .card:active { transform: none; }
  .card-spotlight { display: none; }
  .links li { animation: none; }
  .links a { transition: none; }
  .links a::after { display: none; }
  .links a:hover { transform: none; }
  .links a:hover .link-icon { transform: none; filter: none; }
  .links a:hover .arrow { transform: none; }
  .connection { transition: none; }
  .connection:hover { transform: none; }
  .connection:hover .conn-icon { transform: none; }
  .connections .connection { animation: none; }
  .roles .role-pill { animation: none; }
  .role-pill .dot { animation: none; }
  .badges .badge { animation: none; }
  .activity { transition: none; animation: none; background: rgba(255,255,255,0.04) !important; }
  .activity:hover { transform: none; }
  .activity:hover .activity-art img.large { transform: none; }
  .activity-name { animation: none; -webkit-text-fill-color: var(--text); color: var(--text); }
  .activities .activity { animation: none; }
  .avatar { transition: none; }
  .avatar-wrap { animation: none; }
  .card:hover .avatar { transform: none; box-shadow: none; }
  .bio-word { animation: none; opacity: 0.92; filter: none; transform: none; transition: none; }
  .bio-word:hover { transform: none; color: inherit; }
  .badge { transition: none; }
  .badge:hover { transform: none; }
  .role-pill { transition: none; }
  .role-pill:hover { transform: none; }
  .voice-state { transition: none; animation: none; }
  .voice-state:hover { transform: none; }
  .section-title { animation: none; }
  .section-title::before { animation: none; }
  .discord-header svg { animation: none; }
  .discord-header { animation: none; }
  .custom-status { animation: none; }
  .click-sparkle { display: none; }
  .banner { animation: none; }
  .foot { animation: none; }
  .foot code { animation: none; }
  .handle { animation: none; }
  h1:hover { animation: none; }
  .status-dot[data-status="idle"] { animation: none; }
  .status-dot[data-status="dnd"] { animation: none; }
  .bg::before, .bg::after, .bg span { animation: none; }
  body::before { animation: none; }
  .cursor-glow { display: none; }
  .sakura span { display: none; }
  .hearts span { display: none; }
  .stars span { animation: none; }
  .avatar-wrap::before { animation: none; }
  .avatar-wrap::after { animation: none; display: none; }
  .status-dot[data-status="online"] { animation: none; }
  h1 { animation: none; }
  .card::before { animation: none; }
  .card::after { animation: none; }
  .activity-progress > span { animation: none; }
  .discord-panel { animation: none; }
}

/* ── Discord server embed ───────────────────────────────────────────── */
.discord-embed {
  width: 100%;
  max-width: 980px;       /* matches .cards max-width */
  margin: 1.5rem auto 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  animation: rise 0.45s ease-out both;
}

/* When there's only one profile card, narrow the embed to match it. */
.cards.single ~ .discord-embed { max-width: 460px; }

.discord-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
}
