
/* ---- ACHIEVEMENTS ----- */
.achieveItem{
	border: 1px solid #ff7d9f;
	margin-bottom: 5px;
	border-radius: 5px;
	padding: 5px;
}

.achieveItemLabel{
	font-family: 'Philosopher', sans-serif; 
	font-size: 17px;
	color: #ff7d9f;
	padding: 4px;
}

.achieveBar, .achieveWeekBar, .achieveStatBar{
	text-align: center;
	display: inline-block;
	background-color: #d0d0d0;
	width: 50px;
	color: grey;
	margin-left: 0px;
	margin-right: -4px;
}

.achieveBarWin{
	text-align: center;
	display: inline-block;
	background-color: #d0d0d0;
	width: 100px;
	margin-left: 0px;
	margin-right: 0px;
}

.first{
	border-radius : 5px 0px 0px 5px;
}

.last{
	border-radius : 0px 5px 5px 0px;
}

.won{
	color: #ffffff;
	background-color: rgba(159, 70, 136, 1);
	 
	border-left: 1px solid rgba(255, 255, 255, 0.6);
}

/* ---- ORGASM POPUP ACHIEVEMENTS ----- */

#orgasmAchievement {
  position: fixed;
  left: 50%;
  bottom: 25%;
  transform: translateX(-50%);
  z-index: 999999;
  pointer-events: none;
  display: none;
  width: min(92vw, 520px);
  overflow: visible; /* important */
}

.orgasmCard {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;

  padding: 14px 22px 14px 14px;
  border-radius: 999px;

  background:
    radial-gradient(circle at 15% 50%, rgba(255,255,255,0.95), rgba(255,255,255,0.1) 18%, transparent 35%),
    linear-gradient(135deg, #ff007a 0%, #ff0050 45%, #9b003d 100%);

  box-shadow:
    0 0 25px rgba(255, 0, 122, 0.85),
    0 0 60px rgba(255, 0, 80, 0.45),
    0 18px 35px rgba(0,0,0,0.45);

  transform: scale(0.65) translateY(-20px);
  opacity: 0;
  z-index: 5;


}

.orgasmIconWrap {
  width: 66px;
  height: 66px;
  min-width: 66px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ffe084 55%, #ff9d00 100%);
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    inset 0 0 12px rgba(255,255,255,0.9),
    0 0 18px rgba(255, 230, 100, 0.9);
}

.orgasmIconWrap img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35));
}

.orgasmText {
  min-width: 0;
}

.orgasmTitle {
  font-size: clamp(20px, 4.2vw, 34px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: white;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.25),
    0 0 14px rgba(255,255,255,0.35);
  white-space: nowrap;
}

.orgasmSubtitle {
  margin-top: 7px;
  font-size: clamp(13px, 2.8vw, 18px);
  line-height: 1.05;
  font-weight: 700;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  white-space: nowrap;
}

.orgasmShine {
  position: absolute;
  top: -80%;
  left: -40%;
  width: 35%;
  height: 260%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.65),
    transparent
  );
  transform: rotate(24deg);
  opacity: 0;
}

.orgasmParticle {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999997;
  pointer-events: none;
  font-size: 26px;
  opacity: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.45));
  will-change: transform, opacity;
}


/* Animations */
.orgasmAchievement.show .orgasmCard {
  animation:
    orgasmPopIn 0.38s cubic-bezier(.17, .89, .28, 1.35) forwards,
    orgasmPulse 0.85s ease-in-out 0.42s 2;
}

.orgasmAchievement.show .orgasmShine {
  animation: orgasmShine 0.9s ease-out 0.25s forwards;
}

.orgasmAchievement.hide .orgasmCard {
  animation: orgasmPopOut 0.28s ease-in forwards;
}

@keyframes orgasmPopIn {
  0% {
    opacity: 0;
    transform: scale(0.55) translateY(-22px) rotate(-3deg);
  }
  65% {
    opacity: 1;
    transform: scale(1.08) translateY(0) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
  }
}

@keyframes orgasmPulse {
  0%, 100% {
    box-shadow:
      0 0 25px rgba(255, 0, 122, 0.85),
      0 0 60px rgba(255, 0, 80, 0.45),
      0 18px 35px rgba(0,0,0,0.45);
  }
  50% {
    box-shadow:
      0 0 45px rgba(255, 225, 80, 0.95),
      0 0 95px rgba(255, 0, 122, 0.75),
      0 18px 35px rgba(0,0,0,0.45);
  }
}

@keyframes orgasmShine {
  0% {
    left: -40%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}

@keyframes orgasmPopOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.85) translateY(-20px);
  }
}



/* Mobile */
@media (max-width: 520px) {
  #orgasmAchievement {
    bottom: 25%;
    width: 94vw;
  }

  .orgasmCard {
    padding: 11px 16px 11px 11px;
    gap: 11px;
  }

  .orgasmIconWrap {
    width: 54px;
    height: 54px;
    min-width: 54px;
  }

  .orgasmIconWrap img {
    width: 36px;
    height: 36px;
  }
}


/* ACHIEVEMENTS CARTES */
.achievementPopup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
}

.achievementPopupCard {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(320px, 82vw);
  transform: translate(-50%, -50%) scale(.75);
  opacity: 0;

  padding: 18px;
  border-radius: 24px;

  background:
    radial-gradient(circle at 50% 0%, rgba(255, 91, 216, .28), transparent 55%),
    linear-gradient(180deg, rgba(28,28,34,.96), rgba(5,5,8,.98));

  border: 2px solid rgba(255, 120, 220, .55);

  box-shadow:
    0 0 45px rgba(255, 70, 190, .35),
    0 24px 70px rgba(0,0,0,.65);

  text-align: center;
  color: white;
}

.achievementPopup.show .achievementPopupCard {
  animation: achievementPop 3.5s ease forwards;
}

.achievementPopupBadge {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #ff78d1;
  margin-bottom: 12px;
}

.achievementPopupCard img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
}

.achievementPopupTitle {
  margin-top: 14px;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.achievementPopupText {
  margin-top: 6px;
  font-size: 15px;
  color: rgba(255,255,255,.72);
}

@keyframes achievementPop {
  0% {
    transform: translate(-50%, -50%) scale(.65) rotate(-4deg);
    opacity: 0;
  }

  12% {
    transform: translate(-50%, -50%) scale(1.08) rotate(2deg);
    opacity: 1;
  }

  20% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }

  82% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(.9) rotate(0deg);
    opacity: 0;
  }
}


/* ----  ACHIEVEMENTS GIFTS ----- */
.special-achievement-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(5px);
    pointer-events: none;
}

.special-achievement-overlay.show {
    display: flex;
    animation: achievementOverlayIn 0.25s ease forwards;
}

.special-achievement-overlay.hide {
    animation: achievementOverlayOut 1.2s ease forwards;
}

.special-achievement-popup {
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.special-achievement-popup img {
    width: 400px;
    height: 400px;
    object-fit: contain;
    display: block;
    opacity: 0;
    transform: scale(0.55);
    filter:
        drop-shadow(0 0 0 rgba(255, 210, 90, 0))
        drop-shadow(0 0 0 rgba(255, 255, 255, 0));
}

.special-achievement-popup.animate-in img {
    animation:
        achievementPopIn 0.75s cubic-bezier(.18,.89,.32,1.28) forwards,
        achievementGlowPulse 1.45s ease-in-out 0.75s infinite;
}

@keyframes achievementOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes achievementOverlayOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes achievementPopIn {
    0% {
        opacity: 0;
        transform: scale(0.55);
        filter:
            blur(8px)
            drop-shadow(0 0 0 rgba(255, 210, 90, 0));
    }

    55% {
        opacity: 1;
        transform: scale(1.14);
        filter:
            blur(0)
            drop-shadow(0 0 36px rgba(255, 210, 90, 1))
            drop-shadow(0 0 70px rgba(255, 180, 40, 0.75));
    }

    78% {
        transform: scale(0.96);
        filter:
            drop-shadow(0 0 26px rgba(255, 210, 90, 0.9))
            drop-shadow(0 0 48px rgba(255, 180, 40, 0.55));
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter:
            drop-shadow(0 0 22px rgba(255, 210, 90, 0.85))
            drop-shadow(0 0 42px rgba(255, 180, 40, 0.45));
    }
}

@keyframes achievementGlowPulse {
    0% {
        transform: scale(1);
        filter:
            drop-shadow(0 0 18px rgba(255, 210, 90, 0.65))
            drop-shadow(0 0 34px rgba(255, 180, 40, 0.35));
    }

    50% {
        transform: scale(1.025);
        filter:
            drop-shadow(0 0 34px rgba(255, 230, 140, 1))
            drop-shadow(0 0 72px rgba(255, 180, 40, 0.75));
    }

    100% {
        transform: scale(1);
        filter:
            drop-shadow(0 0 18px rgba(255, 210, 90, 0.65))
            drop-shadow(0 0 34px rgba(255, 180, 40, 0.35));
    }
}