/* --- CSS Design Tokens & Variables --- */
:root {
  /* Warm Cozy Lilac Twilight Palette */
  --bg-gradient: linear-gradient(135deg, #ebdcf0 0%, #BCA6CB 60%, #a28cae 100%);
  --bg-color: #BCA6CB;
  
  --text-primary: #3d342e; /* Deep mocha brown */
  --text-secondary: #786c65; /* Warm soft taupe */
  --text-light: #FAF8F5;
  
  /* Link Card Glassmorphism Tokens */
  --card-bg: rgba(255, 255, 255, 0.55);
  --card-bg-hover: rgba(255, 255, 255, 0.85);
  --card-border: 1px solid rgba(120, 108, 101, 0.15);
  --card-shadow: 0 8px 24px rgba(120, 108, 101, 0.05);
  --card-shadow-hover: 0 14px 32px rgba(120, 108, 101, 0.1);
  
  --modal-bg: #FAF8F5;
  --modal-border: 1px solid rgba(120, 108, 101, 0.2);
  --modal-shadow: 0 24px 64px rgba(120, 108, 101, 0.15);
  --backdrop-color: rgba(61, 52, 46, 0.4);
  
  --toast-bg: #3d342e;
  --toast-text: #FAF8F5;

  /* Typography */
  --font-headings: "Fraunces", serif;
  --font-body: "Quicksand", sans-serif;

  /* Sizing & Radius */
  --border-radius-pill: 50px;
  --border-radius-card: 24px;
  --border-radius-modal: 32px;
  
  --max-width-desktop: 580px;
  --transition-speed: 0.35s;
  
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* --- Base Reset & Setup --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background: var(--bg-gradient);
  background-attachment: fixed;
  font-family: var(--font-body);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Top Utilities Bar --- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 64px;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  padding-top: var(--safe-area-top);
  pointer-events: none;
}

.top-bar-inner {
  width: 100%;
  max-width: var(--max-width-desktop);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(120, 108, 101, 0.05);
  transition: transform var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              background-color var(--transition-speed) ease;
}

.brand-link:hover {
  transform: translateY(-2px) scale(1.05);
  background-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 16px rgba(120, 108, 101, 0.1);
}

.brand-svg {
  width: 18px;
  height: 18px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(120, 108, 101, 0.05);
  cursor: pointer;
  outline: none;
  transition: transform var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              background-color var(--transition-speed) ease;
}

.share-btn:hover {
  transform: translateY(-2px) scale(1.05);
  background-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 16px rgba(120, 108, 101, 0.1);
}

.share-btn:active {
  transform: scale(0.95);
}

/* --- Profile Container --- */
.profile-container {
  width: 100%;
  max-width: var(--max-width-desktop);
  padding: 96px 20px 48px 20px;
  padding-bottom: calc(48px + var(--safe-area-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* --- Header Section --- */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 36px;
  text-align: center;
  width: 100%;
}

.avatar-wrapper {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 20px;
  border-radius: 50%;
  padding: 4px;
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 28px rgba(120, 108, 101, 0.1);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  position: relative;
}

/* Vinyl Spin Outline */
.vinyl-groove {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px dashed rgba(120, 108, 101, 0.25);
  animation: slow-rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes slow-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.username {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Custom emoji.gg cat image next to username */
.username-emoji {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  transition: transform 0.3s ease;
}

.username-emoji:hover {
  animation: purr-wiggle 0.5s infinite alternate ease-in-out;
}

@keyframes purr-wiggle {
  0% { transform: rotate(-6deg) scale(1.15); }
  100% { transform: rotate(6deg) scale(1.15); }
}

.user-badge {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 4px 14px;
  border-radius: var(--border-radius-pill);
  letter-spacing: 0.2px;
  box-shadow: 0 4px 10px rgba(120, 108, 101, 0.03);
}

/* ==========================================
   --- COMPACT HEADER SOUNDBOARD ---
   ========================================== */
.header-soundboard {
  display: flex;
  background-color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  padding: 6px 12px;
  gap: 8px;
  margin-top: 14px;
  box-shadow: 0 8px 20px rgba(120, 108, 101, 0.03);
  z-index: 10;
}

.sound-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(120, 108, 101, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  outline: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              background-color 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

.sound-btn-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Tooltip on hover */
.sound-tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background-color: var(--toast-bg);
  color: var(--toast-text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.sound-toggle-btn:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.95);
}

.sound-toggle-btn:hover .sound-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.sound-toggle-btn:active {
  transform: scale(0.92);
}

/* Sound button active states with custom glows */
.sound-toggle-btn[data-sound="rain"].active {
  background-color: #e0e7ff;
  border-color: #818cf8;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.4);
}

.sound-toggle-btn[data-sound="fire"].active {
  background-color: #ffedd5;
  border-color: #fb923c;
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.4);
}

.sound-toggle-btn[data-sound="cafe"].active {
  background-color: #fef3c7;
  border-color: #dda15e;
  box-shadow: 0 0 10px rgba(221, 161, 94, 0.5);
}

/* --- Links List Container --- */
.links-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

/* --- Cozy Glassmorphic Link Items --- */
.link-item {
  width: 100%;
  min-height: 64px;
  background-color: var(--card-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--border-radius-card);
  position: relative;
  overflow: visible; /* Modified to allow foliage decorations to overlap outward */
  transition: transform var(--transition-speed) cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow var(--transition-speed) cubic-bezier(0.165, 0.84, 0.44, 1),
              background-color var(--transition-speed) ease;
}

.link-item:hover {
  transform: translateY(-3px) scale(1.005);
  background-color: var(--card-bg-hover);
  box-shadow: var(--card-shadow-hover);
}

.link-item:active {
  transform: translateY(-1px) scale(0.99);
}

.link-thumbnail-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(120, 108, 101, 0.05);
}

.link-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 0 16px 0 0px;
  margin-left: 12px;
  letter-spacing: -0.1px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.link-icon-placeholder {
  width: 44px;
  flex-shrink: 0;
}

/* Highlight Link: Cozy glow outline */
.highlight-link {
  background-color: rgba(255, 251, 242, 0.7);
  border: 1px solid rgba(221, 161, 94, 0.35);
  animation: cozy-glow 4s infinite ease-in-out;
}

@keyframes cozy-glow {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(120, 108, 101, 0.05);
  }
  50% {
    box-shadow: 0 8px 30px rgba(221, 161, 94, 0.22);
    background-color: rgba(255, 251, 242, 0.85);
  }
}

/* ==========================================
   --- INTEGRATED PLAYER CARD STYLING ---
   ========================================== */
.player-link-item {
  display: flex;
  align-items: center;
  padding: 10px 14px 14px 14px;
}

/* Circle vinyl artwork play trigger button */
.player-thumbnail-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(120, 108, 101, 0.1);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  background: none;
  outline: none;
}

.player-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.5s ease;
}

.player-thumbnail-img.spinning {
  animation: slow-rotate 10s linear infinite;
}

/* Hover overlay play icon */
.player-overlay-icon {
  position: absolute;
  inset: 0;
  background-color: rgba(61, 52, 46, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.player-thumbnail-btn:hover .player-overlay-icon {
  opacity: 1;
}

.play-svg-icon, .pause-svg-icon {
  width: 18px;
  height: 18px;
  fill: #FAF8F5;
}

/* Time counter title labels */
.music-duration {
  font-family: monospace;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 700;
  margin-top: 2px;
}

/* Redirect streaming anchor */
.player-external-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
  z-index: 5;
}

.player-external-link:hover {
  color: #bc6c25;
  transform: scale(1.08);
}

/* Bottom Integrated Progress Line */
.player-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: rgba(120, 108, 101, 0.08);
  display: flex;
  align-items: center;
  /* Round the bottom corners so they match the card's boundary */
  border-bottom-left-radius: calc(var(--border-radius-card) - 1px);
  border-bottom-right-radius: calc(var(--border-radius-card) - 1px);
  overflow: hidden;
}

.player-progress-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 10;
  cursor: pointer;
}

.player-progress-fill {
  height: 100%;
  width: 0%;
  background-color: #bc6c25;
  transition: width 0.1s linear;
}

/* --- Footer Area --- */
.profile-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  opacity: 0.75;
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
  padding: 8px 16px;
}

.footer-logo:hover {
  opacity: 1;
  transform: scale(1.02);
}

.footer-svg {
  width: 15px;
  height: 15px;
}

/* --- Cozy Modal Dialog --- */
.share-dialog {
  border: var(--modal-border);
  box-shadow: var(--modal-shadow);
  background-color: var(--modal-bg);
  width: 90%;
  max-width: 460px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  margin: 0;
  padding: 28px;
  font-family: var(--font-body);
  color: var(--text-primary);
  border-radius: var(--border-radius-modal);
  z-index: 1000;
  
  opacity: 0;
  display: none;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.35s;
  transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
  transition-behavior: allow-discrete;
}

/* Dialog Open State */
.share-dialog[open] {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);

  @starting-style {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
  }
}

/* Dialog Backdrop styling */
.share-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: 
    display 0.35s allow-discrete,
    overlay 0.35s allow-discrete,
    background-color 0.35s ease-out,
    backdrop-filter 0.35s ease-out;
}

.share-dialog[open]::backdrop {
  background-color: var(--backdrop-color);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  @starting-style {
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
}

/* Dialog Header */
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dialog-header h2 {
  font-family: var(--font-headings);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.close-dialog-btn {
  background: rgba(120, 108, 101, 0.08);
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.close-dialog-btn:hover {
  transform: rotate(90deg);
  background-color: rgba(120, 108, 101, 0.15);
}

.close-dialog-btn:active {
  transform: scale(0.9);
}

/* Dialog Body */
.dialog-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dialog-profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(120, 108, 101, 0.1);
  padding-bottom: 16px;
}

.dialog-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(120, 108, 101, 0.2);
}

.dialog-username {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 17px;
}

/* Copy Link block */
.copy-action-wrapper {
  display: flex;
  border: var(--modal-border);
  border-radius: var(--border-radius-pill);
  height: 48px;
  background-color: rgba(120, 108, 101, 0.05);
  overflow: hidden;
}

.profile-url-text {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-link-btn {
  height: 100%;
  padding: 0 20px;
  background-color: var(--text-primary);
  color: var(--text-light);
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity var(--transition-speed) ease;
}

.copy-link-btn:hover {
  opacity: 0.9;
}

.copy-link-btn:active {
  opacity: 0.8;
}

/* Social sharing grid */
.share-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.share-option-item {
  border: var(--modal-border);
  background-color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(120, 108, 101, 0.03);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.share-option-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(120, 108, 101, 0.08);
  background-color: #fafafa;
}

.share-option-item:active {
  transform: translateY(0);
}

.share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.fb-icon { color: #1877f2; }
.twitter-icon { color: #1d9bf0; }
.wa-icon { color: #25d366; }
.email-icon { color: var(--text-secondary); }

/* --- Cozy Toast Notification --- */
.toast-notification {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 30px);
  background-color: var(--toast-bg);
  color: var(--toast-text);
  padding: 12px 28px;
  border-radius: var(--border-radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(61, 52, 46, 0.25);
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              opacity 0.4s ease-out;
}

.toast-notification.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* --- Accessibility & Preferences --- */
@media (prefers-reduced-motion: reduce) {
  *, .link-item, .share-dialog, .share-dialog::backdrop, .share-btn, .brand-link, .toast-notification, .share-option-item, .vinyl-groove, .username-emoji, .player-thumbnail-img, .sound-toggle-btn, .card-deco {
    transition: none !important;
    animation: none !important;
  }
  .link-item:hover, .share-option-item:hover, .sound-toggle-btn:hover {
    transform: none !important;
  }
  .link-item:active, .share-option-item:active {
    transform: none !important;
  }
  .share-dialog[open] {
    transform: translate(-50%, -50%) !important;
  }
}

/* --- Links List Position --- */
.links-list {
  position: relative; /* Anchor for background framing vines */
}

/* --- Framing Vines --- */
.list-vine {
  position: absolute;
  top: -30px;
  bottom: -30px;
  width: 32px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  background-repeat: repeat-y;
  background-size: contain;
}

.list-vine-left {
  left: -42px;
  background-image: url('assets/emoji_pothos.png');
}

.list-vine-right {
  right: -42px;
  background-image: url('assets/emoji_vine.png');
  transform: scaleX(-1);
}

@media (max-width: 680px) {
  .list-vine {
    display: none; /* Hide framing vines on small viewports to prevent horizontal scrolling */
  }
}

/* --- Card-Specific Foliage Styles --- */
.card-deco {
  position: absolute;
  pointer-events: none;
  z-index: 15;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.45s ease;
}

/* Card 1: Track 10:13 decorations */
.deco-froggyleaf {
  background-image: url('assets/emoji_froggyleaf.gif');
  width: 40px;
  height: 40px;
  top: -20px;
  left: -12px;
  transform-origin: bottom center;
  animation: gentle-sway-ccw 6s infinite ease-in-out;
}
.link-item:hover .deco-froggyleaf {
  animation: none;
  transform: rotate(8deg) scale(1.2);
}

.deco-vine-right {
  background-image: url('assets/emoji_vine.png');
  width: 36px;
  height: 64px;
  top: 8px;
  right: -16px;
  transform-origin: top left;
  animation: gentle-sway-cw 8s infinite ease-in-out;
}
.link-item:hover .deco-vine-right {
  animation: none;
  transform: rotate(12deg) scale(1.08) translateY(-2px);
}

/* Card 2: Spotify decorations */
.deco-clover {
  background-image: url('assets/emoji_clover.png');
  width: 28px;
  height: 28px;
  bottom: -11px;
  left: -11px;
  transform-origin: bottom right;
  animation: gentle-sway-ccw 5s infinite ease-in-out;
}
.link-item:hover .deco-clover {
  animation: none;
  transform: rotate(-15deg) scale(1.25);
}

/* Card 3: Apple Music decorations */
.deco-headphones-top {
  background-image: url('assets/emoji_headphones.png');
  width: 32px;
  height: 32px;
  top: -16px;
  left: 55%;
  transform: translateX(-50%);
  transform-origin: bottom center;
  animation: gentle-headphone-sway 7s infinite ease-in-out;
}
.link-item:hover .deco-headphones-top {
  animation: none;
  transform: translateX(-50%) translateY(-3px) scale(1.25) rotate(-5deg);
}

/* Card 4: YouTube decorations */
.deco-leaf-topright {
  background-image: url('assets/emoji_leaf.png');
  width: 30px;
  height: 30px;
  top: -12px;
  right: -10px;
  transform-origin: bottom left;
  animation: gentle-sway-cw 9s infinite ease-in-out;
}
.link-item:hover .deco-leaf-topright {
  animation: none;
  transform: rotate(10deg) scale(1.2) translateY(-1px);
}

/* Card 5: TikTok decorations */
.deco-pothos-left {
  background-image: url('assets/emoji_pothos.png');
  width: 32px;
  height: 48px;
  top: -6px;
  left: -16px;
  transform-origin: top right;
  animation: gentle-sway-ccw 7.5s infinite ease-in-out;
}
.link-item:hover .deco-pothos-left {
  animation: none;
  transform: rotate(-5deg) scale(1.1) translateY(-2px);
}

/* Card 6: Cash App decorations */
.deco-money-bottomright {
  background-image: url('assets/emoji_money.png');
  width: 32px;
  height: 26px;
  bottom: -10px;
  right: -10px;
  transform-origin: bottom right;
  animation: gentle-note-sway 6.5s infinite ease-in-out;
}
.link-item:hover .deco-money-bottomright {
  animation: none;
  transform: rotate(-12deg) scale(1.25) translateY(1px);
}

/* --- Sway Animations --- */
@keyframes gentle-sway-ccw {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

@keyframes gentle-sway-cw {
  0%, 100% { transform: rotate(15deg); }
  50% { transform: rotate(25deg); }
}

@keyframes gentle-headphone-sway {
  0%, 100% { transform: translateX(-50%) scale(1) rotate(-3deg); }
  50% { transform: translateX(-50%) scale(1.04) rotate(3deg); }
}

@keyframes gentle-note-sway {
  0%, 100% { transform: scale(1) rotate(-10deg); }
  50% { transform: scale(1.08) rotate(5deg) translateY(-2px); }
}
