.rpg-frame,
.inventory-slot,
.equipment-slot,
.exchange-slot,
.auction-house-panel .slot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid #6a6a6a;
    border-radius: 4px;
    color: #b4b4b4;
    text-align: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), transparent 45%),
        #3c3c3c;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -10px 18px rgba(0, 0, 0, 0.28),
        0 2px 6px rgba(0, 0, 0, 0.35);
}

.rpg-frame > img,
.inventory-slot > img,
.equipment-slot > img,
.exchange-slot > img,
.auction-house-panel .slot > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rpg-frame--reward {
    aspect-ratio: 1;
    border-color: #2a3b47;
    border-radius: 8px;
    background:
        radial-gradient(circle, rgba(251, 163, 66, 0.28), transparent 60%),
        #031a2a;
}

.rpg-frame--slot,
.game-inventory-page .inventory-slot,
.game-inventory-page .equipment-slot {
    width: 85px;
    height: 85px;
    max-width: 85px;
    max-height: 85px;
    font-size: 14px;
}

.rpg-frame--slot-sm,
.game-exchange-page .inventory-slot,
.game-exchange-page .exchange-slot {
    width: 50px;
    height: 50px;
    font-size: 14px;
}

.inventory-slot.Normal:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.inventory-slot.Refined,
.equipment-slot.Refined,
.exchange-slot.Refined {
    background-color: rgba(144, 213, 255, 0.6);
}

.inventory-slot.Refined:hover,
.equipment-slot.Refined:hover,
.exchange-slot.Refined:hover {
    background-color: rgba(144, 213, 255, 1);
}

.inventory-slot.Rare,
.equipment-slot.Rare,
.exchange-slot.Rare {
    background-color: rgba(0, 71, 171, 0.6);
}

.inventory-slot.Rare:hover,
.equipment-slot.Rare:hover,
.exchange-slot.Rare:hover {
    background-color: rgba(0, 71, 171, 1);
}

.inventory-slot.Unique,
.equipment-slot.Unique,
.exchange-slot.Unique {
    background-color: rgba(137, 243, 54, 0.6);
}

.inventory-slot.Unique:hover,
.equipment-slot.Unique:hover,
.exchange-slot.Unique:hover {
    background-color: rgba(137, 243, 54, 1);
}

.inventory-slot.Legendary,
.equipment-slot.Legendary,
.exchange-slot.Legendary {
    background-color: rgba(255, 179, 67, 0.6);
}

.inventory-slot.Legendary:hover,
.equipment-slot.Legendary:hover,
.exchange-slot.Legendary:hover {
    background-color: rgba(255, 179, 67, 1);
}

.inventory-slot::after,
.equipment-slot::after,
.exchange-slot::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 0;
    left: 54px;
    z-index: 1000;
    padding: 5px;
    color: #fff;
    text-align: center;
    white-space: pre;
    background-color: #333;
    border-radius: 4px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.inventory-slot:hover::after,
.equipment-slot:hover::after,
.exchange-slot:hover::after {
    visibility: visible;
    opacity: 1;
}

.inventory-slot[data-tooltip=""]::after,
.equipment-slot[data-tooltip=""]::after,
.exchange-slot[data-tooltip=""]::after,
.inventory-slot:not([data-tooltip])::after,
.equipment-slot:not([data-tooltip])::after,
.exchange-slot:not([data-tooltip])::after {
    content: none;
}
