/* Achievement/Toast Notification System */

#ach-area {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.ani_div {
  width: 256px;
  height: 100px;
  background-color: #30302e;
  animation: slideInFromBottom 3s ease forwards;
  position: absolute;
  bottom: 0;
  right: 0;
  pointer-events: auto;
  display: flex;
  align-items: center;
  border-left: 4px solid #999;
}

/* Rarity-based border colors (Steam achievement style) */
.ani_div.ach-rarity-common {
  border-left-color: #999;
}

.ani_div.ach-rarity-uncommon {
  border-left-color: #4169e1;
}

.ani_div.ach-rarity-rare {
  border-left-color: #9932cc;
}

.ani_div.ach-rarity-epic {
  border-left-color: #ff8c00;
}

@keyframes slideInFromBottom {
  0% {
    transform: translateY(100%);
  }
  10% {
    transform: translateY(0);
  }
  90% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100%);
  }
}

.ani_icon {
  width: 68px;
  height: 68px;
  background-color: #000;
  margin: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 4px;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.1);
}

.ani_div.grad {
  background: #30302e;
  background: linear-gradient(to bottom, #30302e, #1a1a17);
}

.ani_icon i {
  font-size: 36px;
  color: #fff;
}

.ach-icon-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.ach-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  overflow: hidden;
  padding-right: 0.5rem;
}

.ach-name {
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.ach-desc {
  font-size: 10px;
  color: #aaa;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-top: 2px;
}
