/* ====== HGG2025 Shelves & Tree ====== */

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

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

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

/* Колонки з полицями */

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

/* Окрема полиця */

.hgg2025-shelf {
  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;
}

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

.hgg2025-shelf::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;
}

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

/* Ялинка / дерево */

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

#hgg2025-tree-image {
  height: 90%;
  object-fit: contain;
  pointer-events: none;
  max-width: unset;
}

/* Footer з сумою, прогресбаром, інпутом */

#hgg2025-gamification-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;
}

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

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

#hgg2025-progress-wrapper {
  width: 100%;
  height: 6px;
  background-color: #e9f5ff;
  border-radius: 50px;
  overflow: hidden;
}

#hgg2025-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #007acc;
  border-radius: 50px;
  transition: width 0.3s ease;
}

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

.hgg2025-manual-amount {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: #f8f8f8;
  max-width: 140px;
  overflow: hidden;
  padding: 0;
}

.hgg2025-manual-amount input {
  border: none !important;
  background: transparent;
  font-size: 1rem;
  width: 100%;
  outline: none;
  padding: 5px 12px !important;
}

.hgg2025-edit-icon {
  font-size: 1rem;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: #EBB707;
  border-left: 1px solid #ccc;
  margin-left: 0;
}

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

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

  #hgg2025-gamification-layout {
    flex-direction: row;
    align-items: center;
  }

  .hgg2025-shelves {
    flex-direction: column;
    gap: 1rem;
  }

  .hgg2025-shelf {
    width: 70px;
    height: 45px;
    min-height: 50px;
  }

  .hgg2025-shelf img {
    height: 45px;
  }

  .hgg2025-character-wrapper {
    width: 110px;
    height: 320px;
  }

  .hgg2025-gamification-container {
    max-width: 100%;
    padding: 12px;
  }

  #hgg2025-gamification-footer {
    padding: 0 8px;
  }

  #hgg2025-gamification-layout > * {
    height: 270px;
  }

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

  #hgg2025-manual-error-mobile {
    display: none;
    text-align: right;
    align-self: flex-end;
    margin-bottom: 6px;
  }
}

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