:root {
  --pink-50: #fff5f7;
  --pink-100: #ffe4e9;
  --pink-200: #ffd1da;
  --pink-300: #ffb8c6;
  --pink-400: #ff9eb3;
  --pink-500: #f8a5b8;
  --pink-600: #e891a8;
  --pink-700: #d97a94;
  --cyan-100: #d4f1f4;
  --cyan-200: #b8e8ed;
  --cyan-300: #9adce5;
  --cyan-400: #7bcfdc;
  --cyan-500: #5ec4d4;
  --cyan-600: #4aa8b6;
  --cream: #fff9fb;
  --white: #ffffff;
  --shadow-soft: rgba(248, 165, 184, 0.25);
  --shadow-medium: rgba(232, 145, 168, 0.35);
  --shadow-cyan: rgba(94, 196, 212, 0.25);
  --text: #8b5a6b;
  --text-dark: #6b4452;
  --radius: 999px;
  --radius-card: 28px;
  --font-display: 'Quicksand', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(165deg, var(--pink-50) 0%, var(--pink-100) 30%, var(--cyan-100) 60%, var(--pink-200) 100%);
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

.bubble-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubble-bg .bubble {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(212, 241, 244, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  animation: bubble-rise linear infinite;
}

.bubble-bg .bubble.cyan-tint {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), rgba(184, 232, 237, 0.45));
}

@keyframes bubble-rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translateY(-100vh) scale(0.8);
    opacity: 0.45;
  }
}

.side-decor {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 0;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 2rem 0;
  pointer-events: none;
}

.side-left {
  left: 0;
}

.side-right {
  right: 0;
}

.side-decor span {
  font-size: 1.75rem;
  opacity: 0.35;
}

.side-left .side-shark {
  animation: swim 6s ease-in-out infinite;
}

.side-left .side-shark:nth-of-type(1) { animation-delay: 0s; }
.side-left .side-shark:nth-of-type(3) { animation-delay: 1.2s; }
.side-left .side-shark:nth-of-type(5) { animation-delay: 0.8s; }

.side-left .side-heart {
  animation: float 7s ease-in-out infinite;
}

.side-left .side-heart:nth-of-type(2) { animation-delay: 0.7s; }
.side-left .side-heart:nth-of-type(4) { animation-delay: 1.4s; }
.side-left .side-heart:nth-of-type(6) { animation-delay: 2.1s; }

.side-flower,
.side-heart {
  animation: float 7s ease-in-out infinite;
}

.side-right .side-flower:nth-child(1) { animation-delay: 0s; }
.side-right .side-heart:nth-child(2) { animation-delay: 0.7s; }
.side-right .side-flower:nth-child(3) { animation-delay: 1.4s; }
.side-right .side-heart:nth-child(4) { animation-delay: 2.1s; }
.side-right .side-flower:nth-child(5) { animation-delay: 0.4s; }
.side-right .side-heart:nth-child(6) { animation-delay: 1.8s; }

@keyframes swim {
  0%, 100% { transform: translateY(0) scaleX(1); }
  50% { transform: translateY(-12px) scaleX(1); }
}

@keyframes bubble-up {
  0%, 100% { transform: translateY(0); opacity: 0.25; }
  50% { transform: translateY(-20px); opacity: 0.5; }
}

@media (min-width: 900px) {
  .side-decor {
    display: flex;
  }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-card {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.profile-card .tagline {
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.9;
  margin-top: 0.75rem;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.tagline-shark {
  display: inline-block;
  margin-left: 0.15rem;
  vertical-align: middle;
  font-size: 1.1em;
}

.avatar-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--white) 0%, var(--pink-100) 100%);
  box-shadow: 0 8px 24px var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 3px solid var(--pink-200);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.avatar-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px var(--shadow-medium);
}

.profile-avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-circle .profile-avatar:not([hidden]) ~ .avatar-text {
  display: none;
}

.avatar-text {
  font-size: 2.5rem;
  color: var(--pink-500);
}

.name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  letter-spacing: 0.15em;
  color: var(--text-dark);
  text-shadow: 0 2px 8px var(--shadow-soft);
  margin-bottom: 0.25rem;
}

.pronouns {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pink-600);
  opacity: 0.95;
}

.links-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  letter-spacing: 0.15em;
}

.links-label-decor {
  margin: 0 0.25rem;
  opacity: 0.8;
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-btn-cyan:hover {
  border-color: var(--cyan-400);
  box-shadow: 0 8px 24px var(--shadow-cyan);
  background: linear-gradient(145deg, var(--cream) 0%, var(--cyan-100) 100%);
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(145deg, var(--white) 0%, var(--pink-50) 100%);
  border: 2px solid var(--pink-200);
  border-radius: var(--radius);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 16px var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.link-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px var(--shadow-medium);
  border-color: var(--pink-400);
  background: linear-gradient(145deg, var(--cream) 0%, var(--pink-100) 100%);
}

.link-btn:active {
  transform: translateY(0) scale(0.98);
}

.link-icon {
  font-size: 1.25rem;
  width: 1.5em;
  text-align: center;
}

.link-label {
  letter-spacing: 0.02em;
}

.discord-section {
  width: 100%;
  margin-top: 0.5rem;
}

.discord-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1rem 1.25rem;
  background: linear-gradient(145deg, var(--white) 0%, var(--pink-50) 100%);
  border: 2px solid var(--pink-200);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 16px var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.discord-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-medium);
  border-color: var(--pink-400);
}

.discord-card-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.discord-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.discord-avatar,
.discord-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--pink-200);
}

.discord-avatar {
  object-fit: cover;
}

.discord-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--pink-100) 0%, var(--pink-200) 100%);
  color: var(--pink-600);
  font-size: 1.5rem;
}

.discord-avatar[hidden] + .discord-avatar-placeholder {
  display: flex;
}

.discord-avatar:not([hidden]) + .discord-avatar-placeholder {
  display: none;
}

.discord-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.discord-username {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.discord-status-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text);
}

.discord-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.discord-status-dot.online {
  background: #43b581;
  box-shadow: 0 0 8px rgba(67, 181, 129, 0.5);
}

.discord-status-dot.idle {
  background: #faa61a;
  box-shadow: 0 0 8px rgba(250, 166, 26, 0.5);
}

.discord-status-dot.dnd {
  background: #f04747;
  box-shadow: 0 0 8px rgba(240, 71, 71, 0.5);
}

.discord-status-dot.offline {
  background: #747f8d;
}

.discord-activity {
  display: block;
  font-size: 0.8rem;
  color: var(--pink-600);
  margin-top: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer {
  margin-top: auto;
  padding-top: 2rem;
  text-align: center;
}

.footer-text {
  display: block;
  font-size: 0.9rem;
  color: var(--pink-600);
  opacity: 0.8;
}

.footer-decor {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
  opacity: 0.6;
}

@media (max-width: 480px) {
  .container {
    padding: 1.5rem 1rem 2.5rem;
  }
  .name {
    font-size: 1.9rem;
    letter-spacing: 0.1em;
  }
  .link-btn {
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
  }
}
