.gamification-v2-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #d1e3f8;
  border-radius: 12px;
  box-sizing: border-box;
}

#gamification-v2-layout {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

#gamification-v2-layout > * {
  height: 400px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shelves-v2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.shelf-v2 {
  position: relative;
  width: 100px;
  height: 60px;
  border-bottom: 4px solid #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70px;
  background: #fff;
  border-radius: 6px;
  z-index: 1;
}

.shelf-v2-remove-btn {
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  line-height: 1;
}

.shelf-v2::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 25px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.05) 80%,
    transparent 100%
  );
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}


.shelf-v2 img {
  height: 60px;
  object-fit: contain;
  cursor: pointer;
}

.character-wrapper-v2 {
  position: relative;
  width: 140px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#child-image-v2 {
  height: 90%;
  object-fit: contain;
  pointer-events: none;
}

#gamification-v2-footer {
  width: 100%;
  max-width: 700px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px;
  box-sizing: border-box;
  align-items: stretch;
  text-align: left;
  font-family: sans-serif;
}

.recommended-text-v2 {
  font-size: 0.9rem;
  color: #555;
}

.recommended-sum-v2 {
  font-size: 1rem;
  font-weight: 600;
  color: #007acc;
  margin-bottom: 6px;
}

#progress-wrapper-v2 {
  width: 100%;
  height: 6px;
  background-color: #e9f5ff;
  border-radius: 50px;
  position: relative;
  overflow: visible;
}

.coh-progress-v2-markers {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  pointer-events: none;
  z-index: 3;
}

.coh-progress-v2-heart {
  position: absolute;
  top: -26px;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  pointer-events: none;
}

.coh-progress-v2-heart svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================
   Progress bubble hearts (v2)
   ============================ */

.coh-progress-v2-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.coh-progress-v2-bubble {
  position: absolute;
  left: var(--left, 50%);
  top: 0;
  width: var(--size, 26px);
  height: var(--size, 26px);
  opacity: 0;
  transform: translate(-50%, -90%) scale(0.35);
  will-change: transform, opacity;
  animation: coh_gamif_v2_heart_bubble var(--dur, 1300ms) ease-out var(--delay, 0ms) forwards;
}

@keyframes coh_gamif_v2_heart_bubble {
  0% {
    opacity: 0;
    transform: translate(-50%, -90%) scale(0.35);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(
        calc(-50% + var(--dx, 0px)),
        calc(-90% + var(--dy, -110px))
      )
      scale(1.15);
  }
}


#progress-bar-v2 {
  height: 100%;
  width: 0%;
  background-color: #007acc;
  border-radius: 50px;
  transition: width 0.3s ease;
  position: relative;
  z-index: 1;
}

.manual-label-v2 {
  font-size: 0.9rem;
  color: #444;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap; 
}

.manual-amount-v2 {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 20px;
  background: #f8f8f8;
  max-width: 140px;
}

.manual-amount-v2 input {
  border: none !important;
  background: transparent;
  font-size: 1rem;
  width: 100%;
  outline: none;
}

.edit-icon-v2 {
  font-size: 1rem;
  color: #888;
  margin-left: 8px;
}

.manual-error-v2 {
  color: red;
  font-size: 12px;
  margin-top: 4px;
}



/* -----------------------------------------------------------------
   MOBILE ≤768 px
   -----------------------------------------------------------------*/
@media (max-width:768px){

  #gamification-v2-layout          { flex-direction:row; gap:.75rem;  align-items: center; }
  .shelves-v2.left, .shelves-v2       { flex-direction:column; gap:1rem; }

  .shelf-v2        { width:70px; height:45px; min-height:50px; }
  .shelf-v2 img    { height:45px; }
  .character-wrapper-v2 { width:110px; height:320px; }

  .gamification-v2-container{ max-width:100%; padding:12px; }
  #gamification-v2-footer   { padding:0 8px; }
    #gamification-v2-layout > * {
    height: 320px;
  }

#manual-error-v2 { display: none !important; }

  #manual-error-mobile-v2 {
    display: none;
    text-align: right;
    align-self: flex-end; 
    margin-bottom: 6px;
  }
	
 .coh-progress-v2-heart {
    top: -22px;
    width: 22px;
    height: 22px;
  }
}

@media (min-width:769px){
  #manual-error-mobile-v2 { display: none !important; }
}

