img:is([sizes="auto" i], [sizes^="auto," i]) {
  contain-intrinsic-size: 3000px 1500px;
}

/* Product card hover effect */
.item-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

/* Wide life-card hover effect */
.life-card-wide:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 35px rgba(255, 153, 170, 0.5) !important;
}

.buy-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Game info card hover effect */
.current-score:hover,
.current-level:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Custom toast styles */
.custom-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: 350px;
  border: 2px solid #26d0ce;
}

.custom-toast.show {
  transform: translateX(-50%) translateY(0);
}

.custom-toast.success {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  border-color: #26d0ce;
}

.custom-toast.error {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  border-color: #ff4757;
}

.custom-toast.warning {
  background: linear-gradient(135deg, #feca57, #ff9ff3);
  border-color: #ffd700;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.toast-message {
  font-weight: bold;
  font-size: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toast-close {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.toast-close:hover {
  opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
  #power-ups {
    flex-direction: column !important;
    align-items: center !important;
  }

  .item-card {
    max-width: 300px !important;
    width: 100% !important;
  }

  /* On mobile, wide card becomes vertical layout */
  .life-card-wide {
    flex-direction: column !important;
    text-align: center !important;
    width: 95% !important;
  }

  .life-card-wide > div:nth-child(2) {
    text-align: center !important;
  }

  .game-info {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .current-score,
  .current-level {
    min-width: 200px !important;
  }

  .custom-toast {
    right: 10px;
    left: 10px;
    max-width: none;
    transform: translateY(-100px);
  }

  .custom-toast.show {
    transform: translateY(0);
  }
}

#equip {
  text-align: center;
  width: 380px;
  margin: auto;
  margin-top: 30px;
  background: green;
  display: grid;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  font-size: 16px;
}

#equip span {
  font-weight: bold;
}

#charnote {
  text-align: center;
  font-size: 12px;
  color: orangered;
  display: none;
  padding: 10px 0;
}

ul#menu-menu-left li.menu-item-2438 a,
ul#menu-menu-left li.menu-item-2218 a,
ul#menu-menu-left li.menu-item-2399 a {
  color: #999;
}
