/* Styles for trait tracker */
.blood-tracker {
  /* Shape & Sizing */
  width: 32.5px;
  height: 50px;
  border-radius: 50%;
  position: relative;
  overflow: hidden; /* Keeps the shimmer inside the gem */
  cursor: pointer;

  /* Base Color, Depth, and Static Shine */
  background: 
    /* The static top-right reflection */
    radial-gradient(ellipse at 75% 25%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 40%),
    /* The core ruby color and 3D shading */
    radial-gradient(ellipse at bottom left, #e61c38 0%, #8a0314 60%, #3a0005 100%);
  
  /* Adds physical depth to the stone itself */
  box-shadow: 
    0 15px 25px rgba(0, 0, 0, 0.4), 
    inset 0 -5px 15px rgba(0, 0, 0, 0.6);
}

.blood-tracker-used {
  /* Shape & Sizing */
  width: 32.5px;
  height: 50px;
  border-radius: 50%;
  position: relative;
  overflow: hidden; /* Keeps the shimmer inside the gem */

  /* Dull, Dark Color & Flat Depth (No shine layer) */
  background: 
    /* A very dark, desaturated red gradient for basic 3D volume without reflection */
    radial-gradient(ellipse at bottom left, #5c1822 0%, #36070e 60%, #1f0105 100%);
  
  /* Heavier, Softer Shadows */
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.6), 
    inset 0 -5px 15px rgba(0, 0, 0, 0.8);
}

/* The Shimmer Layer (Invisible until hover) */
.blood-tracker::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%; 
  height: 200%;
  
  /* The bright diagonal light beam */
  background: linear-gradient(
    225deg, 
    rgba(255, 255, 255, 0) 40%, 
    rgba(255, 255, 255, 0.6) 50%, 
    rgba(255, 255, 255, 0) 60%
  );
  
  /* Start position: Pulled up and to the right */
  transform: translate(50%, -50%);
  transition: transform 0.6s ease-in-out;
  pointer-events: none; /* Ensures the hover state doesn't flicker */
}

/* 4. The Hover Animation */
.blood-tracker:hover::after {
  /* End position: Sweeps down and to the left */
  transform: translate(-50%, 50%);
}

/* The Bright, Interactive Sapphire */
.willpower-tracker {
  width: 50px;
  height: 50px;
  position: relative;
  cursor: pointer;

  /* The cookie-cutter that creates the 8-pointed star */
  clip-path: polygon(
    50% 0%, 58% 28%, 85% 15%, 72% 42%, 
    100% 50%, 72% 58%, 85% 85%, 58% 72%, 
    50% 100%, 42% 72%, 15% 85%, 28% 58%, 
    0% 50%, 28% 42%, 15% 15%, 42% 28%
  );

  /* Deep rich blues with a bright white reflection in the top-left */
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 35%),
    radial-gradient(circle at center, #2d6fc4 0%, #1a468c 50%, #061533 100%);
}

/* The Shimmer Layer (Invisible until hover) */
.willpower-tracker::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%; 
  height: 200%;
  
  /* The diagonal light beam */
  background: linear-gradient(
    225deg, 
    rgba(255, 255, 255, 0) 40%, 
    rgba(255, 255, 255, 0.6) 50%, 
    rgba(255, 255, 255, 0) 60%
  );
  
  /* Start position: Top right */
  transform: translate(50%, -50%);
  transition: transform 0.6s ease-in-out;
  pointer-events: none;
}

/* The Hover Animation */
.willpower-tracker:hover::after {
  /* End position: Sweeps to bottom left */
  transform: translate(-50%, 50%);
}

/* The Dull, Used Sapphire */
.willpower-tracker-used {
  width: 50px;
  height: 50px;
  position: relative;
  
  /* Identical 8-point star shape */
  clip-path: polygon(
    50% 0%, 58% 28%, 85% 15%, 72% 42%, 
    100% 50%, 72% 58%, 85% 85%, 58% 72%, 
    50% 100%, 42% 72%, 15% 85%, 28% 58%, 
    0% 50%, 28% 42%, 15% 15%, 42% 28%
  );

  /* Dark, desaturated blues lacking any shiny reflection */
  background: radial-gradient(circle at center, #1b2e47 0%, #0f1c2e 60%, #050b14 100%);
}

.willpower-tracker-shadow-wrapper {
  /* This reads the shape of the star inside it and casts a perfect shadow */
  filter: drop-shadow(0px 8px 10px rgba(0, 0, 0, 0.6));
}

/* 1. The Bright, Interactive Topaz */
.luck-tracker {
  width: 50px;
  height: 50px;
  position: relative;
  cursor: pointer;

  /* A 16-point polygon that creates a faceted, 4-leaf clover shape */
  clip-path: polygon(
    50% 0%, 65% 15%, 60% 40%, /* Top Lobe */
    85% 35%, 100% 50%, 85% 65%, /* Right Lobe */
    60% 60%, 65% 85%, 50% 100%, /* Bottom Lobe */
    35% 85%, 40% 60%, 15% 65%, /* Left Lobe */
    0% 50%, 15% 35%, 40% 40%, 
    35% 15% /* Back to start */
  );

  /* Golden/Amber hues with a bright white reflection in the top-left */
  background: 
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at center, #ffe600 0%, #d48c00 50%, #4a2e00 100%);
}

/* The Shimmer Layer (Invisible until hover) */
.luck-tracker::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%; 
  height: 200%;
  
  /* The diagonal light beam */
  background: linear-gradient(
    225deg, 
    rgba(255, 255, 255, 0) 40%, 
    rgba(255, 255, 255, 0.6) 50%, 
    rgba(255, 255, 255, 0) 60%
  );
  
  /* Start position: Top right */
  transform: translate(50%, -50%);
  transition: transform 0.6s ease-in-out;
  pointer-events: none;
}

/* The Hover Animation */
.luck-tracker:hover::after {
  /* Sweeps to bottom left */
  transform: translate(-50%, 50%);
}

/* The Dull, Used Topaz */
.luck-tracker-used {
  width: 50px;
  height: 50px;
  position: relative;
  
  /* Identical faceted clover shape */
  clip-path: polygon(
    50% 0%, 65% 15%, 60% 40%, 
    85% 35%, 100% 50%, 85% 65%, 
    60% 60%, 65% 85%, 50% 100%, 
    35% 85%, 40% 60%, 15% 65%, 
    0% 50%, 15% 35%, 40% 40%, 
    35% 15%
  );

  /* Desaturated mustards and dark browns lacking any shiny reflection */
  background: radial-gradient(circle at center, #5c4716 0%, #302202 60%, #120c00 100%);
}

.luck-tracker-shadow-wrapper {
  /* This reads the shape of the clover inside it and casts a perfect shadow */
  filter: drop-shadow(0px 8px 10px rgba(0, 0, 0, 0.6));
}

