:root {
    --shadow: var(--yellow-5, #002cbe);
    --color: var(--yellow-8, #ffea00);
    --glare: hsl(0 0% 100% / 0.75);
    --font-size: calc(var(--font-size-fluid-3, 1rem) * 1.6);
    --transition: 0.2s;
  }
  
  .sparkle-button {
    --padding: calc(var(--size-2, 0.5rem) * 1.6);
    padding: var(--padding);
    border-radius: 5px;
    text-decoration: none;
    color: var(--color);
    position: fixed;
    bottom: 20px;
    left: 20px;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
    cursor: pointer;
    --hover: 0;
    --pos: 0;
    overflow: hidden;
    z-index: 1000;
    background-color: var(--shadow);  
    box-shadow: 0 4px 6px rgba(138, 43, 226, 0.3);
  }

 .sparkle-button a {
    text-decoration: none;
 }

 .sparkle-button p {
    font-size: x-small;
 }
    
  .sparkle-button:hover {
    background-color: var(--gray-8, rgba(20, 90, 255, 0.9)); 
    --hover: 1;
    --pos: 1;
    transform: translateY(-5px);
  }
    
  .sparkle-button span {
    display: inline-block;
    font-size: var(--font-size);
    font-weight: var(--font-weight-9, 900);
    transition: all 0.2s;
    text-decoration: none;
    text-shadow:
    calc(var(--hover) * (var(--font-size) * -0)) calc(var(--hover) * (var(--font-size) * 0)) var(--shadow),
    calc(var(--hover) * (var(--font-size) * -0.02)) calc(var(--hover) * (var(--font-size) * 0.02)) var(--shadow),
    calc(var(--hover) * (var(--font-size) * -0.04)) calc(var(--hover) * (var(--font-size) * 0.04)) var(--shadow),
    calc(var(--hover) * (var(--font-size) * -0.06)) calc(var(--hover) * (var(--font-size) * 0.06)) var(--shadow),
    calc(var(--hover) * (var(--font-size) * -0.08)) calc(var(--hover) * (var(--font-size) * 0.08)) var(--shadow),
    calc(var(--hover) * (var(--font-size) * -0.10)) calc(var(--hover) * (var(--font-size) * 0.10)) var(--shadow);
  transform: translate(calc(var(--hover) * (var(--font-size) * 0.05)), calc(var(--hover) * (var(--font-size) * -0.05)));
    position: relative;
    z-index: 2;
  }
    
  .sparkle-button span:last-of-type {
    position: absolute;
    inset: var(--padding);
    background: linear-gradient(
      108deg,
      transparent 0 55%,
      var(--glare) 55% 60%,
      transparent 60% 70%,
      var(--glare) 70% 85%,
      transparent 85%
    ) calc(var(--pos) * -200%) 0% / 200% 100%, var(--color);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    z-index: 2;
    text-shadow: none;
  }
    
  .sparkle-button span:last-of-type {
    transition: transform 0.2s, background-position 0s;
  }
  
  .sparkle-button:hover span:last-of-type {
    transition: transform 0.2s, background-position calc(var(--hover) * 2.5s) calc(var(--hover) * 0.0s);
  }
  
  .sparkle-button:active {
    --hover: 0;
    transform: translateY(0);
  }
  
  .sparkle-button:active span:last-of-type {
    --hover: 0;
    --pos: 1;
  }
  
  .sparkle-button svg {
    position: absolute;
    z-index: 100;
    width: calc(var(--font-size) * 0.5);
    aspect-ratio: 1;
    top: calc(var(--y, 50) * 1%);
    left: calc(var(--x, 0) * 1%);
    animation: sparkle 3s linear infinite;
    opacity: 0;
  }
  
  .sparkle-button svg path {
    fill: var(--glare);
  }
    
  .sparkle-subtext {
    text-decoration: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;  
    color: var(--color);
    margin: 0;

  }

  @keyframes sparkle {
    0%, 100% {
      transform: translate(-50%, -50%) scale(0);
      opacity: 0;
    }
    25% {
      transform: translate(-50%, -50%) scale(var(--s, 1));
      opacity: 1;
    }
    50%, 75% {
      transform: translate(-50%, -50%) scale(0);
      opacity: 0;
    }
  }
  
  .sparkle-button svg:nth-of-type(1) { --x: 10; --y: 30; --s: 1.1; animation-delay: 0s; }
  .sparkle-button svg:nth-of-type(2) { --x: 20; --y: 70; --s: 1.25; animation-delay: 0.6s; }
  .sparkle-button svg:nth-of-type(3) { --x: 45; --y: 40; --s: 1.1; animation-delay: 1.5s; }
  .sparkle-button svg:nth-of-type(4) { --x: 75; --y: 50; --s: 0.9; animation-delay: 1.8s; }
  .sparkle-button svg:nth-of-type(5) { --x: 90; --y: 20; --s: 0.8; animation-delay: 1.0s; }
  
  /* Ensure the button doesn't overlap with the floating info panel */
  #floating-info-panel {
    left: auto;
    right: 20px;
  }
  
  /* Media query for smaller screens */
  @media (max-width: 768px) {
    :root {
        --font-size: calc(var(--font-size-fluid-3, 1rem) * 1.0);
    }
    .sparkle-button {
    --padding: calc(var(--size-2, 0.5rem) * .5 );
    bottom: 20px;
    left: 20px;
    }
    
    #floating-info-panel {
      bottom: 20px;
    }
  }

  