* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, #30204a, #11101a 55%);
  color: white;
  font-family: Arial, sans-serif;
  min-height: 100vh;
}

.game {
  width: min(720px, 100%);
  margin: auto;
  padding: 18px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

h1 {
  margin: 6px 0;
  font-size: 30px;
}

.live {
  color: #ff4d6d;
  font-weight: bold;
}

.header-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.header-stats span {
  background: #211d2c;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.baby-area {
  text-align: center;
  padding: 30px 10px 20px;
}

.baby {
  font-size: 120px;
  line-height: 1;
  animation: bounce 2s infinite ease-in-out;
}

.baby-area h2 {
  margin: 15px 0 5px;
}

.baby-area p {
  color: #aaa;
  margin: 0;
}

@keyframes bounce {
  50% {
    transform: translateY(-8px);
  }
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat,
.progress,
.demo,
.ranking {
  background: #1b1824;
  border: 1px solid #332e40;
  border-radius: 15px;
  padding: 13px;
}

.stat > div:first-child,
.progress-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.stat span {
  font-size: 14px;
}

.stat b {
  font-size: 14px;
}

.bar {
  height: 10px;
  background: #332f3d;
  border-radius: 20px;
  overflow: hidden;
}

.bar div {
  height: 100%;
  width: 0%;
  border-radius: 20px;
  transition: width .3s;
}

#healthBar {
  background: #ff4d6d;
}

#foodBar {
  background: #ff9f43;
}

#waterBar {
  background: #48dbfb;
}

#sleepBar {
  background: #a29bfe;
}

#cleanBar {
  background: #74b9ff;
}

#happyBar {
  background: #ffe66d;
}

.progress {
  margin-top: 12px;
}

#xpBar {
  background: #9b59ff;
}

#message {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 0;
}

.emergency {
  margin: 15px 0;
  padding: 20px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #4b1624, #251521);
  border: 2px solid #ff4d6d;
  text-align: center;
}

.hidden {
  display: none;
}

.warning {
  font-size: 45px;
}

.emergency h2 {
  margin: 5px 0;
}

.emergency p {
  color: #ffc4cf;
}

.timer {
  font-size: 42px;
  font-weight: bold;
  margin: 8px;
}

.vote-list {
  display: grid;
  gap: 7px;
}

.vote-list div {
  display: flex;
  justify-content: space-between;
  background: #18131d;
  padding: 11px;
  border-radius: 10px;
}

.demo {
  margin-top: 12px;
}

.demo h3,
.ranking h3 {
  margin-top: 0;
}

.demo p {
  color: #aaa;
  font-size: 13px;
}

.buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: #7c4dff;
  color: white;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

button:active {
  transform: scale(.97);
}

.secondary {
  margin-top: 8px;
}

.secondary button {
  background: #292432;
  border: 1px solid #40384e;
}

#cryButton {
  color: #ff8da1;
}

.ranking {
  margin-top: 12px;
}

#rankingList {
  display: grid;
  gap: 6px;
}

#rankingList div {
  background: #24202e;
  padding: 10px;
  border-radius: 9px;
}

.reset {
  width: 100%;
  margin-top: 12px;
  background: #302b38;
}

@media (max-width: 500px) {

  .game {
    padding: 12px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .baby {
    font-size: 100px;
  }

  header {
    align-items: flex-start;
  }

  .header-stats {
    max-width: 180px;
  }

}


/* === LUNA VISUAL ENGINE === */

#lunaStage {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lunaStage::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.16),
    transparent 70%
  );
  animation: lunaAura 3s ease-in-out infinite;
  pointer-events: none;
}

#baby {
  position: relative;
  z-index: 3;
  display: inline-block;
  font-size: clamp(90px, 24vw, 150px);
  transform-origin: center bottom;
  animation: lunaBreathing 2.8s ease-in-out infinite;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.28));
  user-select: none;
}

#baby.lunaHappy {
  animation:
    lunaBreathing 2.8s ease-in-out infinite,
    lunaHappy 0.55s ease-out;
}

#baby.lunaSad {
  animation:
    lunaBreathing 2.8s ease-in-out infinite,
    lunaSad 0.7s ease-in-out infinite;
}

#baby.lunaSleep {
  animation: lunaSleep 3s ease-in-out infinite;
}

#baby.lunaJump {
  animation: lunaJump .7s cubic-bezier(.2,.8,.3,1);
}

#baby.lunaEvolution {
  animation: lunaEvolution 1.5s ease-out;
}

#baby.lunaEmergency {
  animation:
    lunaShake .22s linear infinite,
    lunaEmergencyPulse 1s ease-in-out infinite;
}

.luna-fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 20;
}

.luna-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 24px;
  pointer-events: none;
  animation: lunaParticle 900ms cubic-bezier(.2,.8,.3,1) forwards;
  will-change: transform, opacity;
}

.luna-floating-message {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  z-index: 30;
  pointer-events: none;
  font-size: clamp(22px, 6vw, 38px);
  font-weight: 900;
  text-shadow: 0 3px 12px rgba(0,0,0,.5);
  animation: lunaFloatMessage 1s ease-out forwards;
  white-space: nowrap;
}

.luna-screen-flash {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: rgba(255,255,255,.8);
  animation: lunaFlash .35s ease-out forwards;
}

#emergency:not(.hidden) {
  animation: emergencyEnter .4s cubic-bezier(.2,.8,.3,1);
}

#emergency:not(.hidden) .timer {
  animation: timerPulse .7s ease-in-out infinite;
}

.luna-emergency-mode {
  animation: screenEmergency .3s linear infinite;
}

.luna-evolution-banner {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.5);
  z-index: 100;
  padding: 24px 30px;
  border-radius: 24px;
  background: rgba(20, 20, 35, .94);
  border: 2px solid rgba(255,255,255,.25);
  box-shadow: 0 20px 70px rgba(0,0,0,.55);
  text-align: center;
  pointer-events: none;
  animation: evolutionBanner 1.8s ease-out forwards;
}

.luna-evolution-banner .big {
  display: block;
  font-size: clamp(50px, 15vw, 90px);
  margin-bottom: 8px;
}

.luna-evolution-banner .title {
  font-size: clamp(22px, 6vw, 36px);
  font-weight: 900;
}

.luna-evolution-banner .subtitle {
  margin-top: 5px;
  opacity: .8;
}

.ranking-row {
  transition:
    transform .3s ease,
    background .3s ease;
}

.ranking-row.luna-rank-up {
  animation: rankingUp .8s ease-out;
}

button {
  transition:
    transform .12s ease,
    filter .2s ease,
    box-shadow .2s ease;
}

button:active {
  transform: scale(.94);
}

.luna-action-glow {
  animation: actionGlow .55s ease-out;
}

@keyframes lunaBreathing {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.025);
  }
}

@keyframes lunaAura {
  0%, 100% {
    transform: scale(.9);
    opacity: .45;
  }
  50% {
    transform: scale(1.15);
    opacity: .8;
  }
}

@keyframes lunaHappy {
  0% { transform: scale(1); }
  45% { transform: scale(1.18) rotate(-4deg); }
  70% { transform: scale(.96) rotate(3deg); }
  100% { transform: scale(1); }
}

@keyframes lunaSad {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes lunaSleep {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(5px) rotate(-2deg); }
}

@keyframes lunaJump {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-35px) scale(1.1); }
  65% { transform: translateY(-12px) scale(.97); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes lunaShake {
  0% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-7px) rotate(-3deg); }
  50% { transform: translateX(7px) rotate(3deg); }
  75% { transform: translateX(-6px) rotate(-2deg); }
  100% { transform: translateX(0) rotate(0); }
}

@keyframes lunaEmergencyPulse {
  0%, 100% { filter: drop-shadow(0 8px 15px rgba(255,50,80,.2)); }
  50% { filter: drop-shadow(0 8px 30px rgba(255,50,80,.8)); }
}

@keyframes lunaParticle {
  0% {
    transform:
      translate(-50%, -50%)
      scale(.4)
      rotate(0deg);
    opacity: 1;
  }
  100% {
    transform:
      translate(
        calc(-50% + var(--x)),
        calc(-50% + var(--y))
      )
      scale(1.15)
      rotate(var(--r));
    opacity: 0;
  }
}

@keyframes lunaFloatMessage {
  0% {
    opacity: 0;
    transform: translate(-50%, -35%) scale(.7);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -150%) scale(1.1);
  }
}

@keyframes lunaFlash {
  0% { opacity: .8; }
  100% { opacity: 0; }
}

@keyframes emergencyEnter {
  0% {
    opacity: 0;
    transform: scale(.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes timerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@keyframes screenEmergency {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(2px); }
}

@keyframes evolutionBanner {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.45) rotate(-4deg);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08) rotate(2deg);
  }
  55% {
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.02);
  }
}

@keyframes rankingUp {
  0% { transform: scale(1); }
  40% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes actionGlow {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.4); }
  100% { filter: brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
  #baby,
  #lunaStage::before,
  .luna-particle,
  .luna-floating-message,
  .luna-screen-flash,
  #emergency:not(.hidden),
  #emergency:not(.hidden) .timer {
    animation: none !important;
  }
}


/* === LUNA PERSONAL BOND SYSTEM === */

#lunaBondPanel {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  animation: bondAppear .35s ease-out;
}

.bond-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bond-name {
  font-size: 19px;
  font-weight: 900;
}

.bond-title {
  font-size: 12px;
  opacity: .72;
  margin-top: 3px;
}

.bond-hearts {
  font-size: 20px;
  white-space: nowrap;
}

.bond-label {
  margin-top: 12px;
  font-size: 12px;
  opacity: .65;
}

.bond-progress {
  height: 9px;
  margin-top: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}

.bond-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #ff4f91,
    #ff9ac2
  );
  transition: width .45s ease;
}

.bond-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 13px;
}

.bond-stat {
  padding: 9px 5px;
  border-radius: 12px;
  text-align: center;
  background: rgba(255,255,255,.045);
}

.bond-stat strong {
  display: block;
  font-size: 17px;
}

.bond-stat span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  opacity: .6;
}

.bond-memory {
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  font-size: 12px;
  line-height: 1.4;
  opacity: .86;
}

#lunaWelcome {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  z-index: 120;
  width: min(90vw, 420px);
  padding: 14px 17px;
  border-radius: 17px;
  background: rgba(22,20,35,.96);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 50px rgba(0,0,0,.45);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  animation: lunaWelcome .3s ease-out forwards;
}

#lunaWelcome .welcome-big {
  font-size: 28px;
}

#lunaWelcome .welcome-text {
  margin-top: 4px;
  font-weight: 800;
}

#lunaWelcome .welcome-sub {
  margin-top: 4px;
  font-size: 11px;
  opacity: .65;
}

.caregiver-rank {
  display: flex;
  align-items: center;
  gap: 9px;
}

.caregiver-rank-badge {
  min-width: 28px;
  text-align: center;
  font-size: 18px;
}

.caregiver-rank-name {
  flex: 1;
  font-weight: 800;
}

.caregiver-rank-points {
  font-size: 12px;
  opacity: .65;
}

@keyframes bondAppear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lunaWelcome {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(25px) scale(.95);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@media (max-width: 420px) {
  .bond-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================================================
   BATALLA LUNA VS LEO
================================================== */

.team-battle-panel {
  margin: 20px 0;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(
      135deg,
      rgba(255,105,180,.12),
      rgba(77,166,255,.12)
    );
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 35px rgba(0,0,0,.18);
  overflow: hidden;
}

.team-battle-title {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 4px;
}

.team-battle-subtitle {
  text-align: center;
  opacity: .72;
  font-size: 13px;
  margin-bottom: 18px;
}

.team-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}

.team-card {
  padding: 14px 10px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.team-card:hover {
  transform: translateY(-2px);
}

.team-luna {
  box-shadow:
    inset 0 0 25px rgba(255,105,180,.08);
}

.team-leo {
  box-shadow:
    inset 0 0 25px rgba(77,166,255,.08);
}

.team-avatar {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 8px;
}

.team-name {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
}

.team-luna .team-name {
  color: #ff69b4;
}

.team-leo .team-name {
  color: #4da6ff;
}

.team-stat {
  font-size: 12px;
  opacity: .82;
  margin: 4px 0;
}

.team-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  font-size: 17px;
  opacity: .8;
}

.team-xp-title {
  margin-top: 18px;
  margin-bottom: 7px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  opacity: .8;
}

.team-xp-bar {
  height: 14px;
  width: 100%;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 4px rgba(0,0,0,.25);
}

.team-xp-luna {
  height: 100%;
  background: linear-gradient(
    90deg,
    #ff4fa3,
    #ff8ac6
  );
  transition: width .5s ease;
}

.team-xp-leo {
  height: 100%;
  background: linear-gradient(
    90deg,
    #3f91ff,
    #78b9ff
  );
  transition: width .5s ease;
}

.team-xp-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 800;
}

.team-command-help {
  margin-top: 14px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.15);
  text-align: center;
  font-size: 11px;
  opacity: .8;
}

@media (max-width: 480px) {

  .team-battle-panel {
    padding: 14px;
  }

  .team-scoreboard {
    gap: 5px;
  }

  .team-avatar {
    font-size: 34px;
  }

  .team-name {
    font-size: 15px;
  }

  .team-stat {
    font-size: 10px;
  }

  .team-vs {
    font-size: 13px;
  }
}


/* ==========================================
   QA VISUAL
========================================== */

#lunaQAPanel {
  margin: 16px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(15,15,25,.96);
  border: 2px solid rgba(255,255,255,.12);
  color: #fff;
  box-shadow: 0 12px 35px rgba(0,0,0,.3);
  position: relative;
  z-index: 9999;
}

.qa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qa-title {
  font-size: 19px;
  font-weight: 900;
}

.qa-subtitle {
  font-size: 12px;
  opacity: .65;
  margin-top: 3px;
}

.qa-run-button {
  border: 0;
  border-radius: 14px;
  padding: 12px 15px;
  min-height: 44px;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg,#ff4fa3,#7c5cff);
  cursor: pointer;
}

.qa-summary {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
}

.qa-total {
  font-size: 17px;
  font-weight: 900;
}

.qa-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
}

.qa-pass {
  color: #58e58a;
}

.qa-fail {
  color: #ff5c70;
}

.qa-warn {
  color: #ffc857;
}

.qa-results {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.qa-result {
  padding: 9px 10px;
  border-radius: 11px;
  background: rgba(255,255,255,.045);
}

.qa-result-main {
  display: flex;
  align-items: center;
  gap: 7px;
}

.qa-name {
  font-size: 12px;
  font-weight: 800;
}

.qa-detail {
  margin-left: 23px;
  margin-top: 3px;
  font-size: 10px;
  opacity: .55;
}

.qa-fail {
  border-left: 3px solid #ff5c70;
}

.qa-warn {
  border-left: 3px solid #ffc857;
}

@media (max-width: 480px) {

  #lunaQAPanel {
    margin: 8px;
    padding: 12px;
  }

  .qa-header {
    align-items: stretch;
    flex-direction: column;
  }

  .qa-run-button {
    width: 100%;
  }

}


/* ============================================================
   CRECIMIENTOES DINAMICAS
   ============================================================ */

#evolutionRequirementsHost {
  width: 100%;
}

.luna-evolution-requirements {
  margin: 14px 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(20, 20, 35, .82);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}

.luna-evolution-requirements.ready {
  border-color: rgba(255, 215, 80, .8);
  box-shadow:
    0 0 25px rgba(255, 215, 80, .22),
    0 8px 30px rgba(0,0,0,.18);
}

.evolution-title {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 12px;
}

.evolution-objectives {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.evolution-objective {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
}

.evolution-objective.complete {
  background: rgba(80,220,130,.10);
}

.objective-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.objective-top strong {
  white-space: nowrap;
}

.objective-bar {
  height: 6px;
  margin-top: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.10);
}

.objective-fill {
  height: 100%;
  border-radius: inherit;
  transition: width .35s ease;
  background: linear-gradient(
    90deg,
    #ff69b4,
    #ffd166
  );
}

.evolution-objective.complete .objective-fill {
  background: linear-gradient(
    90deg,
    #45d483,
    #9cffcb
  );
}

.evolution-status {
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  background: rgba(255,255,255,.06);
}

.luna-evolution-requirements.ready .evolution-status {
  color: #ffe66d;
  background: rgba(255,215,80,.12);
}



/* Legacy evolution UI cleanup */
.legacy-evolution,
#legacyEvolution,
#oldEvolution,
.evolution-legacy {
  display: none !important;
}


/* Luna simulator command buttons */
.command-btn[data-command="AGUA"],
.command-btn[data-command="BAÑO"] {
  touch-action: manipulation;
  cursor: pointer;
}

/* ==========================================================
   CRECIMIENTO DE LUNA
   ========================================================== */

.luna-evolution-requirements {
  position: relative;
}

.luna-evolution-requirements .evolution-title {
  letter-spacing: .3px;
}

.luna-evolution-requirements.ready {
  animation: lunaGrowthReady 1.4s ease-in-out infinite;
}

@keyframes lunaGrowthReady {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.015);
  }
}


/* ==========================================================
   OBJETIVOS DE CRECIMIENTO
   VERDE = COMPLETADO
   NORMAL = EN PROGRESO
   ========================================================== */

/*
 * Por defecto NUNCA usamos verde.
 */
.luna-evolution-requirements
.objective-fill {
  background: linear-gradient(
    90deg,
    #5b6cff,
    #8b5cf6
  ) !important;

  transition:
    width .35s ease,
    background .25s ease,
    box-shadow .25s ease;
}

/*
 * Solo una meta marcada explícitamente como completa
 * puede ponerse verde.
 */
.luna-evolution-requirements
.objective-fill.objective-complete,
.luna-evolution-requirements
.objective-objective-complete
.objective-fill,
.luna-evolution-requirements
.objective-completed
.objective-fill {
  background: linear-gradient(
    90deg,
    #22c55e,
    #16a34a
  ) !important;

  box-shadow:
    0 0 10px rgba(34, 197, 94, .35);
}

/*
 * El contenedor completo también puede marcarse,
 * pero solamente cuando está terminado.
 */
.luna-evolution-requirements
.objective-complete
.objective-fill {
  background: linear-gradient(
    90deg,
    #22c55e,
    #16a34a
  ) !important;
}

/*
 * Evitar que .ready pinte automáticamente todas las barras
 * de verde solo porque el conjunto completo está listo.
 */
.luna-evolution-requirements.ready
.objective-fill {
  background: linear-gradient(
    90deg,
    #5b6cff,
    #8b5cf6
  ) !important;
}

.luna-evolution-requirements.ready
.objective-complete
.objective-fill {
  background: linear-gradient(
    90deg,
    #22c55e,
    #16a34a
  ) !important;
}

